I'm working on hotel booking system using the demo version. I managed to do just about everything we need it do up to this point, except for setting certain limits to the "onTimeRangeSelect" event. The way things work is that I need to be able to have two bookings for each day in case I need it (departure + arrival). Let's say a client clears the room on June 12 and another client arrives the same day. I created two cells for each day using:
timeHeaders: [
{ groupBy: "Month" },
{ groupBy: "Day" },
],
scale: "CellDuration",
cellDuration: 720,
This works great, but now I'm trying to impose a few limits to selecting:
1. You can only select minimum 2 cells and only even number of cells (2,4,6,8,10 etc)
2. All events must start in the second part of the day and end in the first part of the day. So for example if someone checks in on June 12 and checks out on June 15, the selection will start in the second cell of June 12 and end in the first cell of June 15 (12 cells total).
Is there a way to do this? The best way would be to have only one cell for each day, but for the event to be offset by 50% to the left or right and be able to add another event to the same day without overlapping.
Thanks!