Hi
Am trying to fire a custom function when a user double clicks on an empty date in sheduler.
scheduler.showLightbox = function(id){
// id - id of event
alert(“custom”);
}
I have added this code after init-ing the scheduler next to my custom events, but it does not fire the alert and still opens the create item form. Ideally I would want to extract the date/time of the cell double clicked and pass to a custom modal (completely outside of scheduler). Can you please explain what I am doing incorrectly.
Cheers
Hello,
showLightbox allows to set custom details form.
You can use onEventCreated event instead
scheduler.attachEvent(“onEventCreated”,function(event_id,e){
alert(“data is”+scheduler.getEvent(event_id).start_date);
})