Discuss anything related to web development but no technical support questions


Post by parroyo »

Hey everyone,

I know this may be a really silly question, but according to the documentation of the scheduler component, I have the ability to handle clicks on events, using "eventClick" event from the SchedulerDomEvents class, but can't find how to implement this in my scheduler,

Would someone please guide me into the right direction?


Post by mats »

Sure:

scheduler.on('eventclick', event => console.log(event));

Params of this event:

/**
     * Triggered for click on an event.
     * @event eventClick
     * @param {Scheduler.view.Scheduler} source This Scheduler
     * @param {Scheduler.model.EventModel} eventRecord Event record
     * @param {Scheduler.model.AssignmentModel} assignmentRecord Assignment record
     * @param {MouseEvent} event Browser event
     */

Post by parroyo »

Awesome!

Thanks a lot for your help.


Post Reply