Read the statement by Michael Teeuw here.
MMM-CalendarExt3
-
Can anyone help me make one last tweak? I would like to get rid of the icon next to the event name and display the event time in just a 24 hour format (23:30 instead of 11:30 PM). Here’s my current config
{ module: "MMM-CalendarExt3", position: "bottom_bar", title: "", config: { mode: "week", instanceId: "basicCalendar", locale: 'en-EN', weekIndex: 0, weeksInView: 4, maxEventLines: 5, firstDayOfWeek: 0, fontSize: "22px", eventTimeOptions: { hour: "2-digit", minute : "2-digit" }, useSymbol: false, calendarSet: ['School', 'Family'], } },
-
- Add this into your
custom.css
.CX3 .event.singleday:not(.useSymbol)::before, .CX3 .event.singleday.useSymbol .symbol.noSymbol::before { display:none; }
- Use this
eventTimeOptions
;
eventTimeOptions: { hour12: false, hour: "2-digit", minute : "2-digit" },
- Add this into your
-
@MMRIZE Perfect! Thank you so much.
-
1.3.0 (2023-04-17)
- CHANGED: Shared library to fix many issues.
- FIXED: some typo.
- FIXED: flickering for many reasons (logic error to treat notifications)
- ADDED:
CX3_RESET_DATE
notification (to reset instantly from glancing) - ADDED:
MMM-TelegramBot
user implementation example - ADDED:
preProcessor
for better handling of raw-data priorly - ADDED:
manipulateDateCell
to manipulate date cell DOM after drawing - CHANGED: Timing of
eventFilter
andeventTransformer
is delayed for better-handling event data after regularized
-
@bicolorbore586
Since1.3.0
, withmanipulateDateCell
callback function in configuration, you can handle date cell itself. So you can achieve what you want.Here is a simple example; (more tweek might be needed to match with your wants wholely)
manipulateDateCell: (cell, events) => { if (Array.isArray(events) && events.some(e => e.calendarName === 'Holidays')) { let dateIcon = document.createElement('span') dateIcon.classList.add('fa', 'fa-fas', 'fa-fw', 'fa-gift') dateIcon.style.color = 'red' dateIcon.style.fontSize = '0.9em' let header = cell.querySelector('.cellHeader') let celldate = header.querySelector('.cellDate') header.insertBefore(dateIcon, celldate) } }
Anyway, it could be possible.
-
@MMRIZE
Hi MMRIZE, this looks amazing. I will be sure to update and give it a whirl! -
Is there anyway to make it show the end time in the montly calendar?
Like:
7:00 - 8:15 Morning Rutine
instead of
7:00 Morning RutineThat would help out lots when looking at it to make sure you don’t double book yourself if you don’t remember how long the specific event you are going to will last.
-
@zelmo
It is intentionally designed so. Not enough width to display endTime together. Use MMM-CalendarExt3Agenda together to see details. -
1.3.1 (2023-05-02)
- CHANGED: Refactoring some codes, the structure of the events, CSS.
- ADDED:
displayEndTime: true
=> Show end time of the event. (hidden by default) (Requested from @zelmo) - ADDED:
displayWeatherTemp: true
=> Show max/min temperature of the forecasted days.
-
@zelmo updated for you.