The onTimeRangeRightClick event is fired when a user clicks an existing time range selection or selects a time range using right mouse button in the JavaScript Calendar component. It is fired before the default action is performed (see also timeRangeRightClickHandling). See also onTimeRangeRightClicked which is fired after the default action.
DayPilot.Calendar.onTimeRangeRightClick(args);args.start - selection start (DayPilot.Date)
args.end - selection end (DayPilot.Date)
args.resource - resource ID
args.preventDefault()