Automatic moving card
I want the user to manually click a button to move the column of the card. Is there any way to do this?
I want the user to manually click a button to move the column of the card. Is there any way to do this?
Hi shimnx,
You could use https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/TaskSelection#config-selectedTasks to get the selected tasks and then https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/TaskModel#field-status to change the column.
How to use these two methods? Are there any examples?
Yes. Sure
Here is an example
taskboard.selectedTasks[0].status = 'todo'
Is there a way to get a card other than the selectedTasks method, since the card I am moving is not the one I selected
All tasks are available in taskStore.
taskBoard.project.taskStore.getAt(3).status = 'done'
https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel
https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-taskStore
https://bryntum.com/products/taskboard/docs/api/TaskBoard/store/TaskStore