Created
October 4, 2019 04:02
-
-
Save mirontoli/2f7a64ba154b90df7e7d10686c85d709 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"elmType": "div", | |
"style": { | |
"padding": "0 4px", | |
"font-size": "2em", | |
"text-align": "center" | |
}, | |
"children": [ | |
{ | |
"elmType": "span", | |
"style": { | |
"display": "inline-block", | |
"color": "=if(@currentField == true, 'green', 'red')" | |
}, | |
"attributes": { | |
"iconName": "=if(@currentField == true, 'CircleFill', 'CircleRing')" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment