The timeRangeDoubleClickHandling property (string) specifies the default action for double-clicking an existing time range in the JavaScript Calendar component.
Declaration
DayPilot.Calendar.timeRangeDoubleClickHandlingPossible Values
"Disabled"- disables the built-in time range double-click handling."Enabled"- keeps the standard time range double-click behavior and fires the related double-click events."CallBack"- executes the server-side double-click action using CallBack(ASP.NET WebForms, ASP.NET MVC, and Java versions only)."PostBack"- executes the server-side double-click action using PostBack(ASP.NET WebForms only).
Default Value
"Disabled"Notes
Use DayPilot.Calendar.onTimeRangeDoubleClick to intercept the double-click before the default action is performed, and DayPilot.Calendar.onTimeRangeDoubleClicked to react after the default action finishes.
Examples
JavaScript
const calendar = new DayPilot.Calendar("dp", {
timeRangeDoubleClickHandling: "Enabled",
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
timeRangeDoubleClickHandling: "Enabled",
// ...
};React
<DayPilotCalendar
timeRangeDoubleClickHandling="Enabled"
{/* ... */}
/>Vue
<DayPilotCalendar
:timeRangeDoubleClickHandling="'Enabled'"
<!-- ... -->
/>See Also
DayPilot.Calendar.onTimeRangeDoubleClick
DayPilot.Calendar.onTimeRangeDoubleClicked
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot