Skip to content

Colored text/bg #74

Answered by eouia
MatsiWolf asked this question in Q&A
May 18, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

There could be many various approaches; Here two of those methods.

eventTransformer: (event) => {
	if (event.title.search('CSS') > -1) event.class = 'myCustom'
	if (event.title.search('font') > -1) event.title = `<span style="color: red;">${event.title}</span>`
	return event
},
.CX3 .event.myCustom.singleday .title {
  color: cyan;
}

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@MatsiWolf
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MatsiWolf
Comment options

Answer selected by MatsiWolf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants