Hi everyone,
unfortunately we have two small problems with the scheduler regarding the context menu.
Deactivate the context menu:
Based on the documentation, we were able to deactivate the context menu for the timeline. Is it possible to deactivate the context menu for the resources as well?
We only found how the context menu for the events and the scheduler could still be deactivated.
[eventMenuFeature]="schedulerConfig.eventMenu"
[scheduleMenuFeature]="schedulerConfig.eventMenu"
[timeAxisHeaderMenuFeature]="schedulerConfig.isContextMenuForTimeline"
Edit the context:
However, a context menu must be available for normal events and in the scheduler.
As described in the documentation, we edit the context menu for the events and the scheduler.
processItems({ items }) {
console.log(items);
},
items: {
testA: {
text: 'Test A',
cls: 'b-separator',
weight: 510,
onItem({ eventRecord, resourceRecord }) {
console.log("EventRecord: ", eventRecord);
console.log("ResourceRecord: ", resourceRecord);
}
},
testB: {
text: 'Test B',
weight: 520,
onItem({ eventRecord, resourceRecord }) {
console.log("EventRecord: ", eventRecord);
console.log("ResourceRecord: ", resourceRecord);
}
},
// Hide built in items, we create our own
deleteEvent: false,
addEvent: false,
editEvent: false,
cutEvent: false,
copyEvent: false,
}
The problem:
The individual entries must be activated or deactivated depending on the type of event.
However, we do not have access to the clicked event via the ProcessItems. Is there a way to do this?
Many thanks in advance
Best regards