Last active
July 3, 2024 10:44
-
-
Save tecchan1107/fa6dc126f6e3a6eab1cb432c1d0da72e 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", | |
"target": "_blank" | |
}, | |
"customCardProps": { | |
"openOnEvent": "click", | |
"directionalHint": "rightCenter", | |
"isBeakVisible": true, | |
"formatter": { | |
"elmType": "div", | |
"style": { | |
"padding":"10px" | |
}, | |
"children": [ | |
{ | |
"elmType": "div", | |
"txtContent":"[$Title]" | |
} | |
] | |
} | |
}, | |
"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