Support Forum
Ok, then simply add an entry to the TimeRanges store with start/end of current day. Docs: https://bryntum.com/docs/scheduler/#Sch ... TimeRanges
Hello
you will find attached my project @Pavel I made the changes that you proposed to me but nothing is displayed
you will find attached my project @Pavel I made the changes that you proposed to me but nothing is displayed
Last edited by melazhadi on Fri Apr 19, 2019 3:53 pm, edited 1 time in total.
TimeRanges feature passes its store to the CrudManager. So you can just simply add your time ranges to planningEquipe/public/data/data.json file:
and leave just "timeRangesFeature: true" in planningEquipe/src/components/schedulerConfig.js
Cheers,
Pavel
{
"success" : true,
"timeRanges" : {
"rows": [
{
"name" : "Morning coffee",
"cls" : "coffee",
"startDate": "2018-05-08",
"endDate" : "2018-05-09"
}
]
},
...
Cheers,
Pavel
Pavlo Miklashevych
Sr. Frontend Developer
You can get Time Ranges store from Crud Manager and set data you need.
Please open this demo and run in console: https://www.bryntum.com/examples/scheduler/timeranges/
Please open this demo and run in console: https://www.bryntum.com/examples/scheduler/timeranges/
scheduler.setStartDate(new Date());
scheduler.crudManager.getStore('timeRanges').data = [
{startDate : new Date(), duration : 1, durationUnit : 'h', style : 'background: tomato;', cls : 'my-zone'}
]
Pavlo Miklashevych
Sr. Frontend Developer