DHTMLX / scheduler

GPL version of JavaScript Event Scheduler
https://dhtmlx.com/docs/products/dhtmlxScheduler/
GNU General Public License v2.0
311 stars 110 forks source link

Scheduler - Timeline onDragEnd #2

Closed Seabizkit closed 6 years ago

Seabizkit commented 10 years ago

Has no access to the event? This is on time-line

Stanislav-Wolski commented 10 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

Seabizkit commented 10 years ago

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

AlexKlimenkov commented 6 years ago

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