I notice there is an event for scheduleContextMenu, but there doesn't seem to be any ability to show a context menu on the schedule itself.
Is this something that is planned? The event itself is useful, as I could manually implement something like this, but it would be amazing and save me a lot of time if there could be something like a scheduleItems in the ContextMenu feature config, in addition to cellItems and headerItems.
Support Forum
Hello,
A SchedulerContextMenu is not currently in the works, but it is a good idea and I have created a feature request ticket for it: https://app.assembla.com/spaces/bryntum ... nu/details
Other than "Add event", which items would you want on it by default?
Best regards,
Johan Isaksson
A SchedulerContextMenu is not currently in the works, but it is a good idea and I have created a feature request ticket for it: https://app.assembla.com/spaces/bryntum ... nu/details
Other than "Add event", which items would you want on it by default?
Best regards,
Johan Isaksson
Best regards,
Johan Isaksson
Johan Isaksson
As a workaround you could enable the cell context menu for the schedule part and try something like this:
scheduler.schedulerColumn.enableCellContextMenu = true;
scheduler.schedulerColumn.cellMenuItems = [{ text : 'Add event', icon : 'fa fa-plus' }];
scheduler.on({
contextMenuItem({ record, item }) {
if (item.text === 'Add event') {
}
}
});
Best regards,
Johan Isaksson
Johan Isaksson
"Add Event" sounds fine as a default, although in my case I'd be populating it with all custom items so being able to turn that off would be needed.
I hadn't tried:
That lets me achieve what I wanted, I hadn't checked what it was set to after initialisation, although the docs make it seem like it should be set to true by default:
https://www.bryntum.com/docs/scheduler/ ... ontextMenu
I hadn't tried:
this.scheduler.schedulerColumn.enableCellContextMenu = true;
https://www.bryntum.com/docs/scheduler/ ... ontextMenu