Our pure JavaScript Scheduler component


Post by cchidiac@itec.com.lb »

Hello, I am using the maps example. I want to save the new events that I add. After clicking the button save (as in the attached figure), I want to call my web services. In which part of the code can I do that?

Attachments
Capture.PNG
Capture.PNG (42.69 KiB) Viewed 340 times

Post by mats »

Try afterEventSave https://bryntum.com/docs/scheduler/#Scheduler/feature/EventEdit#event-afterEventSave

scheduler.on({
    afterEventSave : ({eventRecord}) => {
        console.log(eventRecord.name)
    }
 });
 
         /**
             * Fires on the owning Scheduler after an event is successfully saved
             * @event afterEventSave
             * @on-owner
             * @param {Scheduler.view.Scheduler} source The scheduler instance
             * @param {Scheduler.model.EventModel} eventRecord The record about to be saved
             */

Post by cchidiac@itec.com.lb »

Alright that was very helpful, but sometimes one might resize an event or assign it to another user without clicking on the button save. How can these changes be detected?


Post by mats »


Post by cchidiac@itec.com.lb »

Thank you that was very helpful !! :)


Post Reply