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

weekStarts property non-functional in DayPilotCalendar

Asked by Anonymous
5 months 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]
5 months 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).

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.