Hello,
I want to block the window eventEdit with a predicate. Is it possible? If it is, please guide me.
Thanks in advance!
Hello,
I want to block the window eventEdit with a predicate. Is it possible? If it is, please guide me.
Thanks in advance!
Hi,
Sure, To show the event editor conditionally you could use https://bryntum.com/products/scheduler/docs/api/Scheduler/feature/EventEdit#event-beforeEventEdit event
According to your condition if you return false
it will prevent the editor from opening and if you return true It'll show the event editor
new Scheduler({
...
listeners : {
beforeEventEdit : () => condition ? false : true
}
});
Hope it helps.
Best regards,
Tasnim