Support Forum
Please see our docs & guides: https://www.bryntum.com/docs/scheduler/#guides/data/storebasics.md
P.S. Please pick out correct forum next time (Bryntum Scheduler)
scheduler.resourceStore.add({ name : 'Scarlet Witch' });
Pavlo Miklashevych
Sr. Frontend Developer
It's not supported out of the box, but can be easily implemented. You just need a button, a contextmenu item, or listen to a click/dbclick.
For example, cellClick event:
But I would recommend to use a context menu, because cellClick/scheduleClick/cellDblClick/scheduleDblClick may interfere with some built-in features, for example:
For example, cellClick event:
let scheduler = new Scheduler({
listeners : {
cellClick : () => {
scheduler.resourceStore.add({ name : 'New resource' });
}
},
let scheduler = new Scheduler({
features : {
contextMenu : {
cellItems : [{
text : 'Add new resource',
icon : 'b-fa b-fa-plus',
weight : 200,
onItem : () => {
scheduler.resourceStore.add({ name : 'New resource' });
}
}]
}
},
Pavlo Miklashevych
Sr. Frontend Developer