Hi
I need to know what button was clicked in any view of scheduler. This is basically because I want to implement my own logic to create, edit or update events.
I’m a JavaScript beginner so please bear with me,
Best regards
Ibrahim
Hi
I need to know what button was clicked in any view of scheduler. This is basically because I want to implement my own logic to create, edit or update events.
I’m a JavaScript beginner so please bear with me,
Best regards
Ibrahim
Hello @ibrahim_bittar ,
The fact is that in the Scheduler logic first there is saving on the server, and only if successful, a new event is added visually. Therefore, you need to override the addEvent method in the Backend service:
class MyBackend extends scheduler.services.Backend {
addEvent(event) {
return webix.ajax().post("//localhost:3200/events", event)
.then(res => res.json());
}
}