Closed Seabizkit closed 6 years ago
It works correctly for me After dragging the event bar, the onDragEnd handler called. First parameter is event id ( use scheduler getEvent to get event object by id ) and third parameter of the handler is native HTML event
Could you past code as even the API doc doesn't show this... and i have attempted to access it by guessing.
eg. working.... scheduler.attachEvent("onEventDrag", function (id, mode, e){
not working scheduler.attachEvent("onDragEnd", function (id, mode, e) { or scheduler.attachEvent("onDragEnd", function (e) {
Please post what should work and i will test..... I am using the latest V4.1
Thanks
The event seems working as expected https://docs.dhtmlx.com/scheduler/api__scheduler_oneventdrag_event.html code:
scheduler.attachEvent("onEventDrag", function (id, mode, e){
dhtmlx.message("onEventDrag");
console.log(scheduler.getEvent(id), "scheduler event");
console.log(e, "browser event");
return true;
});
and a live demo: http://snippet.dhtmlx.com/3329e1829
Has no access to the event? This is on time-line