Created
September 27, 2018 15:11
-
-
Save pkbullock/8e9b5a72c9bc91300a17f019cca78e5f to your computer and use it in GitHub Desktop.
Highlight News Items in a Site Pages Modern Library - Column
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": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"style": { | |
"display": "inline-block", | |
"padding": "0 4px" | |
}, | |
"attributes": { | |
"iconName": "=if(@currentField == 0, 'Page', 'News')" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment