Premium support for our pure JavaScript UI components


Post by jan.curmi »

Afternoon,

Is there an easy way to not allow tasks being dragged from one swimlane to another( keeping the functionality that can be dragged from one column to another) ?

Also, can I by default have swimlanes as collapsed rather then expanded on load ?

Regards,
Jan


Post by johan.isaksson »

Hi,

You should be able to prevent that in a beforeTaskDrop listener: https://bryntum.com/docs/taskboard/api/TaskBoard/feature/TaskDrag#event-beforeTaskDrop. It is used (but not for swimlanes) in this demo https://bryntum.com/examples/taskboard/task-drag/

Configuring a swimlane with collapsed: true should make it start collapsed (https://bryntum.com/docs/taskboard/api/TaskBoard/model/SwimlaneModel#field-collapsed).

Best regards,
Johan Isaksson

Post Reply