Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"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