DayPilot.Calendar.selectTimeRange

The selectTimeRange() method selects a Calendar time range programmatically.

The time range start and end must be in the same calendar column.

Available since version 2022.3.5368.

Declaration

DayPilot.Calendar.selectTimeRange(start, end, [resource[, dontFireEvent]]);

Parameters

  • start - selection start (DayPilot.Date or ISO string)
  • end - selection end (DayPilot.Date or ISO string)
  • resource - selection resource id (number or string); optional
  • dontFireEvent - use true to prevent onTimeRangeSelect and onTimeRangeSelected from firing (boolean); optional

See Also

Example

dp.selectTimeRange("2022-11-01T10:00:00", "2022-11-01T12:00:00");