Hi,
I added "timeRanges" to color the cells gray (00:00 to 08:00 in the morning, and 18:00 to 23:59 in the evening):
timeRanges: {
rows: [
{
startDate: "2020-08-07 00:00",
endDate: "2020-08-07 08:00",
},
{
startDate: "2020-08-07 18:00",
endDate: "2020-08-07 23:59",
},
],
},
and it works.
This is the html code:
<bry-scheduler #scheduler [barMargin]="schedulerConfig.barMargin"
[rowHeight]="schedulerConfig.rowHeight" [minHeight]="schedulerConfig.minHeight"
[eventStyle]="schedulerConfig.eventStyle" [startDate]="schedulerStartDate"
[endDate]="schedulerEndDate" [columns]="schedulerConfig.columns" [loadMask]="maskMessage"
[eventEditFeature]="schedulerConfig.eventEditFeature"
[recurringTimeSpansFeature]="recurringTimeSpans"
[timeRanges]="schedulerConfig.timeRanges.rows" [timeRangesFeature]="true"
[contextMenuFeature]="schedulerConfig.features.contextMenu" [treeFeature]="true"
[events]="events" [resources]="resources" [eventRenderer]="eventRenderer">
</bry-scheduler>
Now I need to gray out the time range for all calendar days and I found this example https://bryntum.com/examples/scheduler/recurringtimeranges/.
If I add the following lines
class MyTimeRange extends RecurringTimeSpan(TimeSpan) {};
class MyTimeRangeStore extends RecurringTimeSpansMixin(Store) { ...... }
with this import
import { RecurringTimeSpan, RecurringTimeSpansMixin } from 'bryntum-scheduler/scheduler.umd.js';
I get the following errors:
RecurringTimeSpan(TimeSpan) --> Value of type 'typeof RecurringTimeSpan' is not callable. Did you mean to include 'new'?ts(2348)
RecurringTimeSpansMixin(Store) --> Value of type 'typeof RecurringTimeSpansMixin' is not callable. Did you mean to include 'new'?ts(2348)
How can I solve it?