Read the statement by Michael Teeuw here.
MMM-Calendarext3 eventTransformer
-
So, I’ve copied the code, but wondering how to add more than 1 event title / colour combination, eg John = Blue for the example below, but how would I get John=Blue, Steve=Green, Sandra=Orange, I’ve tried copying and having a separate line for each, but that results in none of the events having colours.
eventTransformer: (ev) => {
if (ev.title.search(‘John’) > -1) ev.color = ‘blue’
return ev
} -
-
@sdetweil Legend!
-
@bicolorbore586 after u get above three if/else, in my opinion it’s better to use a switch/case clause
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login