Our flexible Kanban board for managing tasks with drag drop


Post by daniel lucena »

Hello !!

I was trying to use the event on-before-create to get the task data, but i see that in the types we dont have a event of before create. How can i get the data from new tasks ?

<template lang="pug">
div.container.d-flex.flex-column
  bryntum-gantt(ref="gantt" :project="project" v-bind="ganttConfig" :on-before-task-add="update")
  bryntum-splitter
  bryntum-task-board(ref="taskboard" :project="project" v-bind="taskboardConfig" :on-before-set-record="update")
</template>

Post by marcio »

Hey,

You can use the following event https://bryntum.com/products/taskboard/docs/api/Core/data/mixin/StoreCRUD#event-beforeAdd

const taskBoard = new TaskBoard({
	project : {
		taskStore: {
			listeners: {
				beforeAdd: (ev) => {
					return false;
				}
			}
		}
	}
}

Best regards,
Márcio


Post by daniel lucena »

Thanks it worked !!


Post Reply