DayPilot.Navigator.select

The select() method selects the specified date in the Navigator date picker component.

Declaration

Automatic selection:

DayPilot.Navigator.select(date[, options])

Free-hand selection (available since 2022.2.5270):

DayPilot.Navigator.select(start, end[, options])

Parameters

  • date (DayPilot.Date or ISO 8601 string) - date to be selected

  • start (DayPilot.Date or ISO 8601 string) - selection start date

  • end (DayPilot.Date or ISO 8601 string) - selection end date

  • options (object) - custom options object; optional

The options object supports the following properties:

Notes

Example

Select a date using automatic selection:

const nav = new DayPilot.Navigator("dp", {
  // ...
});
nav.init();

nav.select("2026-03-15");

Select a custom range using free-hand selection:

const nav = new DayPilot.Navigator("dp", {
  freeHandSelectionEnabled: true,
  // ...
});
nav.init();

nav.select("2026-03-15", "2026-03-18", {
  dontNotify: true
});

See Also

DayPilot.Navigator.selectMode

DayPilot.Navigator.freeHandSelectionEnabled

DayPilot.Navigator.onTimeRangeSelect

DayPilot.Navigator.onTimeRangeSelected

DayPilot.Navigator.onVisibleRangeChanged

DayPilot.Navigator Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript