The timeRangeTapAndHoldHandling property (string) determines the action performed when the user uses the tap-and-hold gesture on a calendar cell.
DayPilot.Calendar.timeRangeTapAndHoldHandling"Select" - activates time range selecting.
"ContextMenu" - opens the time range context menu.
"Select"Use DayPilot.Calendar.contextMenuSelection to configure the menu shown by the "ContextMenu" option.
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'"
<!-- ... -->
/>DayPilot.Calendar.contextMenuSelection
DayPilot.Calendar.timeRangeSelectedHandling
Time Range Context Menu [doc.daypilot.org]