ukerandi
asked on
Change backgound color using JSON
Hi Expert,
Any one know how to change background color in the List using JSON
I have found using rows but not all the background and heading
For example :
Any one know how to change background color in the List using JSON
I have found using rows but not all the background and heading
For example :
{
"elmType": "div",
"txtContent": "@currentField",
"style": {
"color": "#fff",
"padding-left": "10px",
"background-color": {
"operator": "?",
"operands": [
{
"operator": "==",
"operands": [
"@currentField",
"Green"
]
},
ASKER
Thanks .Any code example for List background change.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You should deserialize the JSON and use the properties. Assuming that you're going to use Json.NET, you can use the values via a JObject, or, better, via a custom object for all these format properties.