The Navigator date picker supports the following date range selection modes:
Day
Week
Month
The selection mode determines what date range will be selected when a user clicks a date:
the
startandendproperties of the selection (onTimeRangeSelectedevent) will be calculated accordinglythe selected period will be highlighted
You can also enable a free-hand selection mode in addition to the default mode (freeHandSelectionEnabled property).
Examples
SelectMode = Day

SelectMode = Week

SelectMode = Month

JavaScript Date Picker
In the JavaScript date picker, use the selectMode property to choose the selection mode:
<div id="nav"></div>
<script>
const nav = new DayPilot.Navigator("nav", {
// ...
selectMode: "Week"
});
nav.init();
</script>Availability
Availability of this feature in DayPilot editions:
| Lite | Pro | |
|---|---|---|
| DayPilot for JavaScript | ||
| DayPilot for ASP.NET WebForms | ||
| DayPilot for ASP.NET MVC | ||
| DayPilot for Java |
DayPilot