Our pure JavaScript Scheduler component


Post by sisco »

Hello,

I wonder how to detect events in overlap. Indeed, i try to do like this

Capture.PNG
Capture.PNG (10.97 KiB) Viewed 238 times

add an information and filter on overlapping events.

Best regards.


Post by mats »


Post by sisco »

Thanks, it's working well.

 let numberOfTasksOnDatesRange = self.scheduler.eventStore.getEvents({ startDate: eventRecord.data.startDate, endDate: eventRecord.data.endDate, resourceRecord: self.scheduler.resourceStore.getResourceById(eventRecord.data.resourceId) }).length??0;

Best regards


Post by mats »

Glad you got it working so fast :)


Post Reply