The selectMode property (string) determines the selection mode of the date picker component.
Declaration
DayPilot.Navigator.selectModePossible 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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot