Our pure JavaScript Scheduler component


Post by donnabrown »

Hello,
I want to block the window eventEdit with a predicate. Is it possible? If it is, please guide me.

Thanks in advance!

fnaf 2

Last edited by donnabrown on Mon Mar 11, 2024 2:40 pm, edited 1 time in total.

Post by tasnim »

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


Post Reply