Using the examples\drag-from-gird-custom\app.module.js
I have added button 'Refresh Schedule' (looking at the code in php as as example)
The code I have added is not correct, as I get the following error:
Not sure what this should look like
AjaxStore.js:910 Uncaught (in promise) Error: No load url specified
at ResourceStore.internalLoad (AjaxStore.js:910:16)
at ResourceStore.load (AjaxStore.js5)
at Button.onAction (app.moduleNew.js:456:45)
at Button.callback (Base.js:556:9)
at Button.trigger (Events.js44)
at Button.onInternalClick (Button.js:641:5)
at HTMLButtonElement.handler (EventHelper.js:486:20)
tbar : [
'Schedule view',
{
type: 'button',
text: 'Refresh Schedule',
/*
readUrl : 'data/dataNew.json',
autoLoad : true,
*/
async onAction() {
await Promise.all([
scheduler.resourceStore.load({url : 'data/dataNew.json'}),
scheduler.eventStore.load({url : 'data/dataNew.json'})
]);
}
}
]
[\CODE]