Read the statement by Michael Teeuw here.
SlotTitle Date formatting with CalendarExt2
-
Format is pretty close to what I’m looking for, but the first row has the day name twice, and something weird is happening to November 11, as you can see in the picture.
Any suggestions as to what I should change in the View to make each day look the same?
views: [ { Name: "Rentals", title: "BNC Rentals", mode: "week", position: "fullscreen_above", calendars: ["BNC Rentals"], useEventTimeRelative: true, slotCount: 3, slotMaxHeight: "175px", slotTitle: "", slotSubTitle: "", slotTitleFormat: "ddd MMM/DD", maxItems: 200, hideOverflow: false, }
-
I changed slotTitle to a single space instead of null, and the duplicate days are now missing. I still have some strangeness for the first displayed slot and the first of the month. Any suggestions?
-
I’d suggest to rather change slotTitleFormat to “MMM/DD” to get rid of the duplicate days. THe “ddd” adds the day name which is not necessary in your calendar.
Then change slotTitle back to “” to have the day name header for every slot.Then, the two slots are not formatted with slotTitleFormat but with (moment(…).format(“MM/D”). But I can only guess where that sits in the code.
-
@CliffordW
https://github.com/eouia/MMM-CalendarExt2/wiki/2c4.-View:week,-month#viewweekhmmm. read and try again. I think i made this too configurable. anyway there is no definitive role of slotTitle. your result is not a bug or an error, just you might have not yet understood what you were doing.
-
@Sean No argument there. I’m not familiar with this style of coding, but I am trying to learn.