Created
July 4, 2024 12:17
-
-
Save tecchan1107/c440c58d0286f392698e75c2bcf91ea6 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": "https://developer.microsoft.com/json-schemas/sp/v2/tile-formatting.schema.json", | |
"hideSelection": true, | |
"height": 200, | |
"width": 250, | |
"groupProps": { | |
"headerFormatter": { | |
"elmType": "div", | |
"style": { | |
"border-left": "10px solid", | |
"display": "flex", | |
"flex-direction": "row", | |
"width": "98%", | |
"height": "50px", | |
"margin-top": "10px", | |
"margin-bottom": "10px" | |
}, | |
"attributes": { | |
"class": "ms-bgColor-themeLighter ms-fontColor-themePrimary" | |
}, | |
"children": [ | |
{ | |
"elmType": "span", | |
"txtContent": "@group.fieldData.displayValue", | |
"style": { | |
"padding-left": "25px", | |
"font-size": "20px", | |
"padding-right": "10px" | |
}, | |
"attributes": { | |
"class": "ms-fontColor-neutralPrimary ms-fontWeight-bold" | |
} | |
}, | |
{ | |
"elmType": "span", | |
"txtContent": "= '(' + @group.count + ')'", | |
"style": { | |
"font-size": "20px", | |
"padding-right": "10px" | |
}, | |
"attributes": { | |
"class": "ms-fontColor-neutralPrimary ms-fontWeight-bold" | |
} | |
} | |
] | |
} | |
}, | |
"formatter": { | |
"elmType": "div", | |
"style": { | |
"diplay": "flex", | |
"flex-direction": "column", | |
"width": "230px", | |
"height": "180px", | |
"box-shadow": "0 3px 10px rgba(0,0,0,.2)", | |
"border": "1px solid", | |
"border-radius": "10px", | |
"cursor": "pointer", | |
"text-decoration": "none", | |
"margin": "10px" | |
}, | |
"attributes": { | |
"class": "ms-fontColor-neutralTertiaryAlt ms-bgColor-white" | |
}, | |
"customRowAction":{ | |
"action": "defaultClick" | |
}, | |
"children": [ | |
{ | |
"elmType": "div", | |
"style": { | |
"display": "flex", | |
"height": "65%", | |
"width": "100%", | |
"border-radius": "10px 10px 0px 0px", | |
"justify-content": "center", | |
"align-items": "center" | |
}, | |
"txtContent": "[$Emoji]", | |
"attributes": { | |
"class": "ms-bgColor-themePrimary ms-fontSize-68" | |
} | |
}, | |
{ | |
"elmType": "div", | |
"style": { | |
"display": "flex", | |
"align-items": "center", | |
"width": "85%", | |
"height": "35%", | |
"font-size": "15px", | |
"overflow": "hidden" | |
}, | |
"txtContent": "[$Title]", | |
"attributes": { | |
"class": "ms-fontWeight-bold ms-fontColor-neutralPrimary" | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment