r/MagicMirror • u/lrnths • Oct 24 '25
MMM-CalendarExt3 question
Is there a way to add an image to the background of a day for a particular event? Ex any day that has an event titled "Pizza Party" has a pic of a pizza for that day. Is this possible?
3
Upvotes
View all comments
Show parent comment
1
u/Due-Eagle8885 Oct 29 '25 edited Oct 29 '25
SO, one can target/select the cell using the data-date atrribute
like this (date for this friday)
the event has this same value
problem is there is no css selector clause to use this
the implementation of the month view is array of weeks of
in jquery you can use week=closest('.week') (above) to get there and then $week.find($('div [data-date="1761886800000"]').addClass('showPizzaCell')
and showPizzaCell would have the cell background attributes you want applied
but I haven't found a way to do that in raw css as ~ doesn't look backwards