Our flexible Kanban board for managing tasks with drag drop


Post by yingtao »

Each swimlanes has many tasks in my demo.When I listeners the 'taskDrop', I need to get the info of where I push in swimlanes.

Attachments
basic.zip
demo
(1.8 MiB) Downloaded 63 times

Post by mats »

Please see docs, the taskDrop includes targetSwimlane as a param, is this what you are looking for?

https://bryntum.com/docs/taskboard/api/TaskBoard/feature/TaskDrag#event-taskDrop


Post by yingtao »

I see it, it don't solved my problem.
like this image, I drop first task to third position,I only get target position swimlane name,but I can't get I drop it to this swimlane third position.

Image


Post by yingtao »

Image


Post by johan.isaksson »

Hi,

The order of tasks in a column is determined by their https://bryntum.com/docs/taskboard/api/TaskBoard/model/TaskModel#field-weight. Thus there is no index that is changed, but rather an update to the weight value on drop.

Hope that helps!

Best regards,
Johan Isaksson

Post Reply