Our flexible Kanban board for managing tasks with drag drop


Post by lanpeng »

Hi brymtun team
How to prevent dragging a card from swimlaneA to swimlaneB?

Attachments
屏幕截图 2022-08-17 134146.png
屏幕截图 2022-08-17 134146.png (62.07 KiB) Viewed 395 times

Post by tasnim »

You can check this https://bryntum.com/docs/taskboard/api/TaskBoard/feature/TaskDrag#event-beforeTaskDrop

Here is an example of how you can achieve it:

new Taskboard({
    listeners : {
        beforeTaskDrop(event) {
            const { targetSwimlane } = event;
            if (targetSwimlane.data.id === 'critical') {
                return false
            }
        }
    }
});

Post Reply