Created
September 11, 2018 14:40
-
-
Save gfrice/e1319e757840938736f3827c46f73c94 to your computer and use it in GitHub Desktop.
View Formatting
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/view-formatting.schema.json", | |
"hideListHeader": true, | |
"hideSelection": true, | |
"rowFormatter": { | |
"elmType": "button", | |
"customRowAction": { | |
"action": "defaultClick" | |
}, | |
"attributes": { | |
"class": "ms-bgColor-white ms-bgColor-themeLight--hover" | |
}, | |
"style": { | |
"width": "100%", | |
"margin": "5px 0", | |
"padding": 0, | |
"border": "none", | |
"cursor": "pointer" | |
}, | |
"children": [ | |
{ | |
"elmType": "div", | |
"attributes": { | |
"class": "ms-borderColor-themePrimary ms-bgColor-themePrimary" | |
}, | |
"style": { | |
"min-width": "220px", | |
"display": "flex", | |
"border-width": "3px", | |
"border-style": "solid", | |
"box-sizing": "border-box", | |
"align-items": "center" | |
}, | |
"children": [ | |
{ | |
"elmType": "div", | |
"attributes": { | |
"iconName": "=if([$status] == 'processing', 'Processing')", | |
"class": "ms-fontSize-su ms-fontWeight-regular ms-fontColor-white", | |
"title": "[$status]" | |
}, | |
"style": { | |
"flex": "none", | |
"padding": "12px", | |
"padding-left": "18px", | |
"height": "42px" | |
} | |
}, | |
{ | |
"elmType": "div", | |
"style": { | |
"flex-grow": "1", | |
"text-align": "left", | |
"max-width": "140px" | |
}, | |
"children": [ | |
{ | |
"elmType": "div", | |
"attributes": { | |
"class": "ms-fontSize-l ms-fontWeight-semibold ms-fontColor-white", | |
"title": "=toLocaleDateString([$Modified])" | |
}, | |
"style": { | |
"margin-right": "12px", | |
"overflow": "hidden", | |
"white-space": "nowrap" | |
}, | |
"txtContent": "=toLocaleDateString([$Modified])" | |
}, | |
{ | |
"elmType": "div", | |
"attributes": { | |
"class": "ms-fontSize-l ms-fontWeight-semibold ms-fontColor-white", | |
"title": "[$status]" | |
}, | |
"style": { | |
"margin-right": "12px", | |
"overflow": "hidden", | |
"white-space": "nowrap" | |
}, | |
"txtContent": "[$status]" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"elmType": "div", | |
"attributes": { | |
"class": "ms-fontColor-themePrimary ms-borderColor-themePrimary ms-fontWeight-semibold ms-fontSize-l" | |
}, | |
"style": { | |
"border-width": "3px", | |
"border-style": "solid", | |
"box-sizing": "border-box", | |
"width": "100%", | |
"text-align": "left", | |
"padding": "21px 12px", | |
"overflow": "hidden" | |
}, | |
"children": [ | |
{ | |
"elmType": "div", | |
"txtContent": "[$Title]", | |
"style": { | |
"height": "24px" | |
}, | |
"attributes": { | |
"title": "[$Title]" | |
} | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment