fires when dnd ended and the dragged cell's position changed
id | string|number | cell id |
indexOld | number | cell index before dnd |
indexNew | number | cell index after dnd |
var myAcc = new dhtmlXAccordion({
parent: "accObj",
multi_mode: true,
dnd: true,
items: [
{ id: "a1", text: "Main Page" },
{ id: "a2", text: "Site Navigation" },
{ id: "a3", text: "Support & Feedback" },
{ id: "a4", text: "Comments" }
]
});
myAcc.attachEvent("onDrop", function(id, indexOld, indexNew){
// your code here
});
Back to top