A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
MMM-CalendarExt3 show description instead of title in event
-
I wonder if there is any possibilty so show the description in a calender event instead of the title?
For example the iCal sends everyday “Sport, training” in title and in the description there is what type of training it is. Where i want so know what type of training in my mirror.
I´m pretty new to this, it´s my first mirror :)
Regards
-
eventTransformer: (ev) =>{ const targetCalendars = [ 'SpecificCalendarName', 'AntotherCalendarName' ]; // Fulfill the calendar names you want to apply. if (targetCalendars.includes(ev.calendarName) && ev.description) { ev.title = ev.description } return ev }
Add this into your CX3 configuration.
-
@mrbaloo1337
For specific calendar? Or for all calendars? -
eventTransformer: (ev) =>{ const targetCalendars = [ 'SpecificCalendarName', 'AntotherCalendarName' ]; // Fulfill the calendar names you want to apply. if (targetCalendars.includes(ev.calendarName) && ev.description) { ev.title = ev.description } return ev }
Add this into your CX3 configuration.
-
Perfect, works excellent! Thanks
-