Closed ramanbuttar closed 6 years ago
Now you can use the dragBoards
option to activate drag/drop on all boards
I don´t see any option to not allow drag inside the original board. The dropEl its called even if i drag a item to the same board. Its possible to create this 'feature'?
Hi @brunonetadmin , in fact dropEl is called even at the same origin. Are you trying to prevent reordening? Tell us more about what are you trying to achieve.
I´m trying to execute the action of consulting(ajax) the backend, and showing the status change notifications, but i don´t wanna make anything if the item its dropped in the same column. And i´m not using reordering itens.
And how i trigger a custom action for example, if i try to move a item that are forbidden to go to that column?
You can check if source and target are the same. If so, you don't fire ajax request. ;)
dropEl: function(el, source, target, siblings) {
if (source === target) {
return;
}
$.ajax( //...
}
Another feature request: Provide an option to keep the boards affixed and not allow drag/drop operations on the board itself.