Read the statement by Michael Teeuw here.
MMM-CalendarExt2 - I want to change the first day of the week, but weekStart setting is not having an effect
-
For the last few weeks, my calendar weeks have been starting on Monday, rather than Sunday (I’m in the US). It used to show Sun-Sat, but now it’s Mon-Sun.
I found the weekStart: 0 setting, but it’s not having any effect.
I set the locale: en-US.
I tried setting the mode: “week” and type: “row” and weekStart: 0 or 3 or 5 just to see what it would do, and it had no effect.
I set type: “weekly” and it did change the first day to Sunday, each week was a column, not a row.The blocks from my config are below. Can anyone help?
{
module: ‘MMM-CalendarExt2’,
config: {
locale: “en-US”,
weekStart: 0,
calendars: [
Under views, here’s what I have
views: [
{
position: “top_bar”,
mode: “week”,
type: “row”,
slotMaxHeight: “150px”,
slotCount: 3,
hideOverflow: false,
slotTitle: “”,
slotTitleFormat: “dddd, M/D”,
timeFormat: “h:mm”,
slotSubTitle: " ",
modeOptions: {
weekStart: 0, // Sunday-first
},
}, -
@eprostko The issue is that
modeOptionsis not a valid configuration field in MMM-CalenderExt2. Where did you get that?weekStartneeds to be set directly inside the view object:views: [ { position: "top_bar", mode: "week", type: "row", weekStart: 0, // ← here, at the top level of the view slotMaxHeight: "150px", slotCount: 3, // ... } ]The top-level
weekStart: 0in your config has no effect either - there’s no such top-level option, only the per-view (ordefaultSet.view) one. -
@eprostko And it would be great if you could format your code snippets a bit more clearly in the future like proper indentation and quotation marks. The way you wrote the config part is really hard to read and analyze 🙂
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login