Hi, I am trying to Implement scheduler with Monthly, Week and Daily Timeline View. The performance of scheduler is really dissapointing when it comes to render large number of slots. After some tweaks with slotDuration and slotDivision, was able to make it work for me.
But there is an issue when using Timeline View. if i have an event that occurs within multiple days period. The Item is divided seperated in parts for each day, because of which the event title is repeated for each item it renders.
After exploring library, tried to implement a custom list of slots rendering for each item which would cover multiple dates for same without repeating, but was unable to achieve it.
Scheduler TimelineView Customization - StackBlitz
Would be happy, if we find a solution for this.
But there is an issue when using Timeline View. if i have an event that occurs within multiple days period. The Item is divided seperated in parts for each day, because of which the event title is repeated for each item it renders.
After exploring library, tried to implement a custom list of slots rendering for each item which would cover multiple dates for same without repeating, but was unable to achieve it.
const createSlots = (
startDate: Date,
endDate: Date,
durationMinutes: number,
ogSlot: Slot
) => {
const slots = [] as Slot[];
debugger;
const currentSlot = dayjs(startDate);
const endDateTime = dayjs(endDate);
let slt = currentSlot;
let index = 0;
while (slt.isBefore(endDateTime)) {
let nextSlotStart = slt.add(durationMinutes, 'minute');
slots.push({
start: slt.toDate(),
end: nextSlotStart.toDate(),
group: ogSlot.group,
index: index,
} as Slot);
slt = nextSlotStart;
index++;
}
return slots;
};
const customSchedulerItem = (props: SchedulerItemProps) => {
var s = { ...props };
let customSlots = createSlots(
props.start,
props.end,
60 * 6,
props.slots[0]
);
return (
<Tooltip openDelay={100} position="bottom" anchorElement="pointer">
<SchedulerItem
{...props}
slots={customSlots}
style={{
...s.style,
textAlign: 'start',
}}
/>
</Tooltip>
);
};
Would be happy, if we find a solution for this.