search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

weekStarts property non-functional in DayPilotCalendar

Asked by Anonymous
14 days ago.

In daypilot-react.min.d.ts the weekStarts prop definition - weekStarts?: "Auto" | number; is commented out. Is this intentional because there is something faulty with the prop?

I tried uncommenting it but regardless of value there seems to be no change whatsoever in the DayPilotCalendar using either “Week” or “Days” viewType.

The week always starts on Sunday, which is what I want, but in some scenarios I would prefer to be able to manipulate this value myself.

Answer posted by Dan Letecky [DayPilot]
12 days ago.

At this moment, the weekStarts property is not available in the Lite version.

However, you can set a custom week start using the locale property. If there is no built-in locale that meets your needs, you can create a custom locale (you can also register it using DayPilot.Locale.register() so it becomes available using its ID).

New Reply
This reply is
or drop files here
Your name (optional):