Created
December 3, 2017 17:07
-
-
Save mrik23/fa32d90b2ea6eb703320dc45a89d41d3 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", | |
"attributes": { | |
"class": { | |
"operator": "?", | |
"operands": [ | |
{ | |
"operator": "==", | |
"operands": [ | |
"[$Completed]", | |
1 | |
] | |
}, | |
"ms-fontColor-green ms-fontWeight-semibold", | |
{ | |
"operator": "?", | |
"operands": [ | |
{ | |
"operator": "<", | |
"operands": [ | |
"@currentField", | |
"@now" | |
] | |
}, | |
"ms-fontColor-red ms-fontWeight-semibold", | |
"ms-fontColor-neutralPrimary ms-fontWeight-semibold" | |
] | |
} | |
] | |
} | |
}, | |
"style": { | |
"padding-left": "4px" | |
}, | |
"children": [ | |
{ | |
"elmType": "span", | |
"txtContent": "@currentField", | |
"style": { | |
"padding-right": "8px" | |
} | |
}, | |
{ | |
"elmType": "span", | |
"attributes": { | |
"iconName": { | |
"operator": "?", | |
"operands": [ | |
{ | |
"operator": "==", | |
"operands": [ | |
"[$Completed]", | |
1 | |
] | |
}, | |
"CheckMark", | |
{ | |
"operator": "?", | |
"operands": [ | |
{ | |
"operator": "<", | |
"operands": [ | |
"@currentField", | |
"@now" | |
] | |
}, | |
"Warning", | |
"Forward" | |
] | |
} | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment