Skip to content

How do I do conditional formatting with the tables bubble #305

Answered by bashbunni
bashbunni asked this question in Q&A
Discussion options

You must be logged in to vote

The way to do this would be to create some custom styles for the table, then use the table's SetStyles function to change the styling based on some condition. You can see how I implemented this in the gist below. In this case it changes the background colour to red when the name of the city is Cairo.

Solution: https://gist.github.com/bashbunni/c003657992bdb960da87d009d9e95bd9

Replies: 3 comments 2 replies

Comment options

bashbunni
Dec 21, 2022
Maintainer Author

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

bashbunni Apr 22, 2024
Maintainer Author

Answer selected by bashbunni
Comment options

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

bashbunni Apr 22, 2024
Maintainer Author

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants