DayPilot.Calendar.onTimeRangeSelected

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.

Declaration

DayPilot.Calendar.onTimeRangeSelected(args)

Parameters

  • 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

See Also

api=1

This is a legacy mode used in ASP.NET WebForms.

Declaration

DayPilot.Calendar.onTimeRangeSelected(start, end, column)

Parameters

  • start (DayPilot.Date) - start of the selected range

  • end (DayPilot.Date) - end of the selected range

  • column (string) - id of the column