fires when a user clicks on an item, but before the dragging is started
id | string|number | cell id |
index | number | current cell index (starting from 0) |
boolean | "return true" - allows cell to be dragged, "return false" - otherwise |
var myAcc = new dhtmlXAccordion(...);
myAcc.attachEvent("onBeforeDrag", function(id, index){
// your code here
return true; // allow dragging
});
added in 4.2
Back to top