Hi team,
I am using bryntum scheduler enterprise version - 4.0.2.
how to trigger event when click on "save" button inside "edit event" ?
How to get updated event data ?
Please help me to find this .
Thanks .
Hi!
You could listen to existing events to get updated event data.
https://www.bryntum.com/docs/scheduler/#Scheduler/feature/EventEdit#event-afterEventSave
https://www.bryntum.com/docs/scheduler/#Scheduler/feature/EventEdit#event-beforeEventSave
Use onSchedulerEvents in Scheduler config for Angular.
<bry-scheduler
#scheduler
...
(onSchedulerEvents) = "onSchedulerEvents($event)"
// other properties
></bry-scheduler>
Please refer to this Angular integration docs
https://www.bryntum.com/docs/scheduler/#guides/integration/angular.md
And check angular example code for this
Scheduler/examples/angular/angular-8/src/app/app.component.ts
Hi sergey
Thanks for your reply .
I am using
eventEdit : {
onSaveClick({ source : editor, record : eventRecord }) {
//triggering this function
console.log(editor) //not giving updated data
}
}
this event is triggering but not giving updated data.
Scheduler/examples/angular/angular-8/src/app/app.component.ts
onSchedulerEvents(event: any) {
console.log(event.type) // this log screen shot I attached
if (event.type === 'eventschange') {
//not catching this type event
}
}
this function is calling but I don't get "eventschange" type event. Once I entered into "edit event
"popup this function is not firing before its firing.
Here I attached screen shot please check
Thanks!