Our pure JavaScript Scheduler component


Post by jiuxiang meng »

[REACT] when I right cilck the mouse, it will show Delete、cut and Copy, how to disable this function


Post by tasnim »

Hi,
Please study the docs :
https://bryntum.com/docs/scheduler-pro/api/Scheduler/feature/EventMenu

Here is a little code snippet of how you can achieve that :

const schedulerConfig = {
	....
	eventMenuFeature : {
		items : {
			copyEvent   : { disabled : true },
			cutEvent    : { disabled : true },
			deleteEvent : { disabled : true }
		}
	}
};

Best regards,
Tasnim


Post by jiuxiang meng »

I tried but did not work, is it the right way to change the feature?


Post by jiuxiang meng »

sorry, it works on event, what about it in the resource, I want to disable it in left columns


Post by tasnim »

Then you need to check the cellMenu feature, Please check below.
https://bryntum.com/docs/scheduler-pro/api/Grid/feature/CellMenu

Here is how you can achieve it:

cellMenuFeature : {
	items : {
		removeRow: { disabled : true },
		cut: { disabled : true },
		copy: { disabled : true }
	}
}

Post Reply