Valid Target Columns for DnD
Posted: Wed Mar 22, 2023 3:01 pm
Hi,
do we have the possibility to specify columns as valid drop target during DnD (without catching the drop event)?
Thanks
Markus
Hi,
do we have the possibility to specify columns as valid drop target during DnD (without catching the drop event)?
Thanks
Markus
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