Page 1 of 1

Valid Target Columns for DnD

Posted: Wed Mar 22, 2023 3:01 pm
by markus

Hi,

do we have the possibility to specify columns as valid drop target during DnD (without catching the drop event)?

Thanks
Markus


Re: Valid Target Columns for DnD

Posted: Wed Mar 22, 2023 3:20 pm
by marcio

Hello Markus,

You can use https://bryntum.com/products/taskboard/docs/api/Core/helper/DragHelper#config-dropTargetSelector to specify the CSS selector used to determine if a drop is allowed at the current position.

But we recommend using the following listener to validation of drop action https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoardBase#event-beforeTaskDrop