Hello - I’m building a simple reservation calendar for a property we rent. I’m wondering if there’s a equivalent for rangeEndInvalid for start. We can overlap reservations on both the front and end of an existing booking (checkout AM & checkin PM)
I’m using your flightbooking demo as a baseline…
var booking = $('#demo-flight-booking-type-outbound').mobiscroll().datepicker({
controls: ['calendar'],
select: 'range',
display: 'anchored',
startInput: '#demo-flight-booking-type-outbound',
endInput: '#demo-flight-booking-type-return',
min: min,
max: max,
pages: 2,
inRangeInvalid: false,
rangeEndInvalid: true,
rangeStartInvalid: true, // THIS IS WHAT I WOULD NEED
invalid: [
'2024-04-16',
'2024-04-17',
'2024-04-18',
'2024-04-19',
]
}).mobiscroll('getInst');
Thoughts - Is there a better way to accomplish this… or should I just trim the existing reservations by -1 day