Hi,
We use scheduler 4.1.0v and angular 11.
After upgrade to scheduler 4.1.0 I can't add recurring time ranges.
My Recurring time range class:
import {
RecurringTimeSpan,
TimeSpan,
RecurringTimeSpansMixin,
Store
} from '@bryntum/scheduler/scheduler.lite.umd.js';
// Define a new Model extending TimeSpan class
// with RecurringTimeSpan mixin which adds recurrence support
// @ts-ignore
export class RecurringTimeRange extends RecurringTimeSpan(TimeSpan) { }
// Define a new store extending the Store class
// with RecurringTimeSpansMixin mixin to add recurrence support to the store.
// This store will contain time ranges.
// @ts-ignore
export class RecurringTimeRangeStore extends RecurringTimeSpansMixin(Store) {
static get defaultConfig() {
return {
// use our new MyTimeRange model
modelClass: RecurringTimeRange,
storeId: 'timeRanges'
};
}
}
I saw that you add after the upgrade input to the scheduler "timeRangeStore", so in the schedulerConfig I add property of timeRangesStore like this:
timeRangesStore: new RecurringTimeRangeStore(),
and set it in scheduler's input:
[timeRangeStore] = "schedulerConfig.timeRangesStore"
Then I create some recurring time range like this:
{
"startDate": "2018-02-07 11:00",
"durationUnit": "d",
"duration": 1,
"recurrenceRule": "FREQ=WEEKLY;BYDAY=WE",
"cls": "striped"
}
After all I did I see only one time range.
What I am doing wrong?
If it not the write way, what is the way?
I add example based on angular 8 example of 4.1.0v