The timeRangeTapAndHoldHandling property (string) determines the action performed when the user uses the tap-and-hold gesture on a calendar cell.
Declaration
DayPilot.Calendar.timeRangeTapAndHoldHandlingPossible Values
"Select"- activates time range selecting."ContextMenu"- opens the time range context menu.
Default Value
"Select"Notes
Use DayPilot.Calendar.contextMenuSelection to configure the menu shown by the "ContextMenu" option.
Examples
JavaScript
const calendar = new DayPilot.Calendar("dp", {
timeRangeTapAndHoldHandling: "ContextMenu",
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
timeRangeTapAndHoldHandling: "ContextMenu",
// ...
};React
<DayPilotCalendar
timeRangeTapAndHoldHandling="ContextMenu"
{/* ... */}
/>Vue
<DayPilotCalendar
:timeRangeTapAndHoldHandling="'ContextMenu'"
<!-- ... -->
/>See Also
DayPilot.Calendar.contextMenuSelection
DayPilot.Calendar.timeRangeSelectedHandling
Time Range Context Menu [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot