It possible to create very easily events from within the Scheduler. It is also possible to delete resources within scheduler while doing a right click on the resource.
But is it also possible to create a resource using right click or similar?
Support Forum
Sure you can add a button or menu entry which does
Simple as that! https://bryntum.com/docs/scheduler/#Core/data/mixin/StoreCRUD#event-add
scheduler.resourceStore.add({ name : 'my cool new resource' })
It is just more convenient, if I can simply do a right-click -> add resource / double click and just fill in the columns in the added row instead of having an own button with an extra form having all the columns duplicated.
But sure, I will push up suggestions, if I find something useful missing. Speaking of this... Infinit Scrolling would be nice, if you could support this out of the box.
But sure, I will push up suggestions, if I find something useful missing. Speaking of this... Infinit Scrolling would be nice, if you could support this out of the box.
Please configure your context menu with new item.
If you want to add this item to timeline context menu please configure SchedulerContextMenu with items (object)
https://bryntum.com/docs/scheduler/#Scheduler/feature/ScheduleContextMenu
If you want to add this item to cell context menu please configure ContextMenu with cellItems (array)
https://bryntum.com/docs/scheduler/#Grid/feature/ContextMenu
Note, context menu will be refactored in the next major release! Please check out update notes while upgrading.
If you want to add this item to timeline context menu please configure SchedulerContextMenu with items (object)
https://bryntum.com/docs/scheduler/#Scheduler/feature/ScheduleContextMenu
const scheduler = new Scheduler({
features : {
scheduleContextMenu : {
items : {
addResourceItem : {
text : 'Add resource',
icon : 'b-icon b-fa-plus',
onItem() {
scheduler.resourceStore.add({ name : 'New resource' });
}
}
}
}
},
https://bryntum.com/docs/scheduler/#Grid/feature/ContextMenu
const scheduler = new Scheduler({
features : {
contextMenu : {
cellItems : [
{
text : 'Add resource',
icon : 'b-icon b-fa-plus',
onItem() {
scheduler.resourceStore.add({ name : 'New resource' });
}
}
]
}
},
Pavlo Miklashevych
Sr. Frontend Developer