The timeRangeClickHandling property (string) specifies the default action for clicking an existing time range in the JavaScript Calendar component.
DayPilot.Calendar.timeRangeClickHandling"Disabled" - disables the built-in time range click handling.
"Enabled" - keeps the standard time range click behavior and fires the related click events.
"Enabled"Available since 2023.2.5592.
Use DayPilot.Calendar.onTimeRangeClick to intercept the click before the default action is performed, and DayPilot.Calendar.onTimeRangeClicked to react after the default action finishes.
JavaScript
const calendar = new DayPilot.Calendar("dp", {
timeRangeClickHandling: "Disabled",
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
timeRangeClickHandling: "Disabled",
// ...
};React
<DayPilotCalendar
timeRangeClickHandling="Disabled"
{/* ... */}
/>Vue
<DayPilotCalendar
:timeRangeClickHandling="'Disabled'"
<!-- ... -->
/>DayPilot.Calendar.onTimeRangeClick