still this not working
config: SchedulerPropsAndEvents = {
timeHeaders: [
{ groupBy: "Day", format: "dddd, d MMMM yyyy" },
{ groupBy: "Cell", format: "HH:mm" },
],
heightSpec:"Parent100Pct",
scale: "Hour",
cellGroupBy: "Cell",
cellDuration: 30,
cellWidth: 60,
allowEventOverlap: true,
rowHeaderWidthAutoFit: false,
useEventBoxes: "Never",
snapToGrid:false,
eventHoverHandling: "Bubble",
scrollDelayEvents: 0,
timeFormat: "Clock24Hours",
rowDoubleClickHandling: "CallBack",
startDate: "2024-01-01",
days: 2,
eventHeight: 33,
eventResizeHandling: 'Disabled',
timeRangeSelectedHandling: "Enabled",
timeRangeRightClickHandling: "Enabled",
treeEnabled: true,
hideBorderFor100PctHeight: true,
eventMoveHandling: "Update",
allowMultiSelect: true,
allowMultiMove: false,
allowMultiRange: false,
autoScroll: 'Drag',
businessBeginsHour: 0,
businessEndsHour: 0,
multiMoveVerticalMode: 'All',
rowHeaderWidth: 250,
rowClickHandling:'Enabled',
moveBy:'Full',
onIncludeTimeCell: (args) => {
const businessStart = 21; // 9 PM (21:00)
const businessEnd = 6; // 6 AM (06:00) of the next day
const hour = args.cell.start.getHours();
const day = args.cell.start.getDay();
if ((hour >= businessStart && day === 1) || (hour < businessEnd && day === 2)) {
args.cell.visible = true;
}
else {
args.cell.visible = false;
}
},
Please help