When I click a button, I want to open a DatePicker popup in order to select the date to display in a Calendar configured with:
- selectMode: 'Week'
- weekStarts: 1
I use this as a base example:
https://javascript.daypilot.org/demo/calendar/datepicker.html
Question #1
I use DayPilot Pro Javascript using Typescript (npm package). It seems the “DayPilot.DatePicker
“ type is missing? I have to use: “new (DayPilot as any).DatePicker(…)
“ (I may declare the types myself, but I think the type should be available in the package?)
Question #2
Is there a way for that DatePicker popup to start the weeks on mondays, like my Calendar? I tried adding “weekStarts: 1
“ in the options, but without success. It’s very odd to have a date picker that doesn’t start the weeks on the same day as the target Calendar.
Thanks in advance!