Created
November 27, 2017 17:05
-
-
Save mrik23/33929ac309a61a2042e5281a6be3a2ee 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
{ | |
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json", | |
"debugMode": true, | |
"elmType": "div", | |
"txtContent": "@currentField", | |
"attributes": { | |
"class": { | |
"operator": "?", | |
"operands": [ | |
{ | |
"operator": "<", | |
"operands": [ | |
"[$Completed]", | |
"0.5" | |
] | |
}, | |
"ms-bgColor-red ms-fontColor-neutralLighterAlt", | |
{ | |
"operator": "?", | |
"operands": [ | |
{ | |
"operator": "<", | |
"operands": [ | |
"[$Completed]", | |
"1" | |
] | |
}, | |
"ms-bgColor-yellow ms-fontColor-neutralLighterAlt", | |
"ms-bgColor-tealLight ms-fontColor-neutralLighterAlt" | |
] | |
} | |
] | |
} | |
}, | |
"style": { | |
"padding-left": "6px" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment