Hi Guys,
I am trying to add some final touches to my implementation of Scheduler component with https://www.bryntum.com/examples/scheduler/resourcetimeranges/, but they are not shown.
Scheduler Version is 4.0.3
My usecase:
Scheduler.component.ts
@Input() resourceTimeRangesFeature = true;
<bry-scheduler
[events]="schedulerEvents$ | async"
[resources]="resources"
[resourceTimeRanges]="resourceVacations"
Approach 1: Setting resourceTimeRanges as Array with matching resourceId
this.resourceVacations = [{
id: 1,
resourceId: 666,
startDate: '2020-01-14',
duration: 2,
durationUnit : 'd',
timeRangeColor : 'red',
name: 'Test'
}];
Approach 2.
@ViewChild(SchedulerComponent, { static: false }) scheduler: SchedulerComponent;
const scheduler = this.scheduler.schedulerInstance as any;
scheduler.resourceTimeRangeStore.add({
name : 'New time range',
startDate : new Date(2020, 0, 14),
duration : 20,
durationUnit : 'h',
timeRangeColor : 'green',
resourceId : 666
});
Result is still the same, timerange is not displayed, am I missing something?
Thanks