We have own edit-, add- and delete dialogs. So we want to use them instead of using the build in.
Therefore I added the listeners to the config:
listeners: {
beforeEventAdd({ eventRecord, resourceRecords }) {
const evt = eventRecord.data;
const grp = resourceRecords[0].data;
// Prevent built in editor
return false;
},
beforeEventEdit: ({ eventRecord, resourceRecord }) => {
const evt = eventRecord.data;
// Prevent built in editor
return false;
},
beforeEventDelete: this.onDeleteConfirmation.bind(this),
<bryntum-scheduler-pro
#scheduler
[listeners] = "schedulerConfig.listeners"
[eventEditFeature] = "true"
[createEventOnDblClick] = "true"
...
</bryntum-scheduler-pro>
The delete- and add-callback are called once, but the edit-callback is called twice on double-click on a filled cell. The second time the resourceRecord-argument is undefined.