Read the statement by Michael Teeuw here.
Cal EXT3 - Symbols and colors
-
@_V_ if you want to set multiple properties on this event when the if condition is true
the you need { }
after the if()otherwise only the first is used when the condition is true…
you would have to open the browser developers window to see what the problem is
ctrl-shift-i (chrome)
console tab,
put ext3 in the filter field. -
@sdetweil I finally understood what you meant by put in filter…^^
So I set the additional {} and the cal stopped again, message saing:
TypeError: event.symbol.join is not a function
Does this give you any clue or do you need the additional “at …” lines too?
-
-
@sdetweil OK no error, color is shown but no symbol.
Did I miss some basic setting in the modules config? -
@_V_ sorry, don’t know about that icon library…
can you try one of the FA values…
"\f015"
for example
-
@sdetweil Tried, no change.
Does it matter, where in the ext3 config it is placed, like at the end for example?
-
@_V_ the filter/transformer is INSIDE the Ext3 config:{} block…
{ module: "MMM_CalendarExt3", position: config:{ . . . . eventTransformer: (ev) => { if (ev.title.search("John") > -1){ ev.symbol= "\f015"; ev.color= "blue"; } return ev }, } },
-
Mornin Sam
So I put it in the ext3 block but that didnt change anything.
I set “useIconify: false” to check if the fontawesome would work, but nothing too.Also I wonder why I nowhere read about the ev.symbol error in any of the topics :/
-
@_V_ I see the same, except, if you click on the event, the popover comes up and the color is there…
the symbol doesn’t work…
there is text in the readme about the iconify icon set…
-
Ok so I tried updating and “repairing” the module, turning the default cal class off but leads only to no icon shown.
I actually dont care if its Iconify or FA, but neither of them work ffs