DayPilot.Navigator.selectMode

The selectMode property (string) determines the selection mode of the date picker component.

Declaration

DayPilot.Navigator.selectMode

Possible Values

  • "Day" - selects a single day.

  • "Week" - selects a whole week.

  • "Month" - selects a whole month.

  • "None" - disables date selection.

Default Value

"Day"

Examples

JavaScript

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

Angular

<daypilot-navigator [config]="config"></daypilot-navigator>
config: DayPilot.NavigatorConfig = {
  selectMode: "Week",
  // ...
};

React

<DayPilotNavigator
  selectMode="Week"
  {/* ... */}
/>

Vue

<DayPilotNavigator
  selectMode="Week"
  <!-- ... -->
/>

See Also

DayPilot.Navigator Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript