Our flexible Kanban board for managing tasks with drag drop


Post by tmcuong »

What is event raise when I change status column task


Post by alex.l »

Hi tmcuong,

It triggers taskStore data change event, same for any field value change.
https://bryntum.com/docs/taskboard/api/TaskBoard/store/TaskStore#event-change

All the best,
Alex


Post by tmcuong »

I added change event as guide but it is not working

<bryntum-task-board  (onchange)="onTaskBoardChange($event)"   #taskboard></bryntum-task-board>
 onTaskBoardChange(event): void {
    alert('onTaskBoardChange');
  }

Post by alex.l »

Please listen to taskStore, not taskboard.

taskboard.project.taskStore.on('change', (e) => console.log(e));

All the best,
Alex


Post by tmcuong »

my code can not acccess project from taskboard.
How I add event to config ?


Post by alex.l »

Try listeners config then

    project : {
        taskStore : {
            listeners : {
                change: () => console.log(1)
            }
        }
    }

All the best,
Alex


Post Reply