Our pure JavaScript Scheduler component


Post by a1swarya »

Hi,

I want to call a method when cancel button and the close symbol on right corner of editevent popup is clicked. I found listeners for save and delete button but didn't find for cancel button.
How can I achieve this?

Attachments
editevent
editevent
editpopup.PNG (25.88 KiB) Viewed 694 times

Post by saki »

Although you could drill down to cancel button and to close tool, it should be enough to listen to beforeclose event of the editor.

You can get more info on how to get access to individual controls by navigating to https://bryntum.com/examples/scheduler/basic/ and then you can type in the console:

scheduler.features.eventEdit.editor.widgetMap

Note: Open the event editor once so that it is created, otherwise the above line fails.

You can also see which events are fired by typing:

scheduler.features.eventEdit.editor.on({catchAll:(e)=>{console.log(e)}})

Then play with the editor and watch the developer console.


Post by a1swarya »

Hi saki,

Thanks for the response. It is working now. :D


Post Reply