The onTimeRangeSelected event is fired when a user completes a time range selection (drag and drop) in the JavaScript Calendar component.
This event is fired after the default action (specified using timeRangeSelectedHandling property).
When selecting is in progress, the Calendar component fires onTimeRangeSelecting on every change.
DayPilot.Calendar.onTimeRangeSelected(args)
args.control
(DayPilot.Calendar) - the calendar component instance
args.end
(DayPilot.Date object) - end of the selection
args.resource
(string | number) - ID of the selection resource (in the resource calendar mode)
args.start
(DayPilot.Date object) - start of the selection
args.origin
("click" | "drag" | "api") - origin of the event; "click" is used if the users clicks a grid cell without dragging; available since 2023.2.5592
This is a legacy mode used in ASP.NET WebForms.
DayPilot.Calendar.onTimeRangeSelected(start, end, column)
start (DayPilot.Date) - start of the selected range
end (DayPilot.Date) - end of the selected range
column (string) - id of the column