-
[From Discord] tomekz Any ideas/examples how to implement such simple feature? Solution: https://gist.github.com/bashbunni/c003657992bdb960da87d009d9e95bd9 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The way to do this would be to create some custom styles for the table, then use the table's Solution: https://gist.github.com/bashbunni/c003657992bdb960da87d009d9e95bd9 |
Beta Was this translation helpful? Give feedback.
-
In the example, the whole row style changes based on the condition and only when it is selected. I was wondering if there is a way to change the style for just one cell and without the need for it to be selected. So in the example if any row has a cell with a value "Cairo" the word will have a different color. Is this possible with the Table bubble? or a custom implementation would be necessary? |
Beta Was this translation helpful? Give feedback.
-
There is a PR I made to address this. Please take a look to see if it helps with your concern. |
Beta Was this translation helpful? Give feedback.
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