

SharePoint
Partagez et gérez du contenu, des connaissances et des applications pour dynamiser le travail... View more
FORMATER UNE LISTE SHAREPOINT DE GROUP AVEC JSON
FORMATER UNE LISTE SHAREPOINT DE GROUP AVEC JSON
Bonjour à tous,
J’ai une liste SharePoint et j’aimerais grouper sur la colonne “type de contenu” par du Json
J’ai écrit ce code, mais il ne passe pas<pre class=”language-markup”>
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
"groupProps": {
"headerFormatter": {
"elmType": "div",
"style": {
"padding-left": "12px",
"font-size": "16px",
"font-weight": "400",
"cursor": "pointer",
"outline": "0px",
"white-space": "nowrap",
"text-overflow": "ellipsis"
},
"children": [
{
"elmType": "span",
"style": {
"padding": "5px 5px 5px 5px",
"display": "=if(@group.columnDisplayName == 'Type de contenu')"
},
"txtContent": "@group.fieldData.Value"
},
{
"elmType": "span",
"style": {
"padding": "5px 5px 5px 5px",
"display": "=if(@group.columnDisplayName == 'Type de contenu')"
},
"txtContent": "@group.fieldData.Value"
},
{
"elmType": "div",
"children": [
{
"elmType": "div",
"style": {
"display": "flex",
"flex-direction": "row",
"justify-content": "center"
},
"children": [
{
"elmType": "div",
"txtContent": "=' (' + @group.count + ')'"
}
]
}
]
}
]
}
}
}
Sorry, there were no replies found.
Connectez-vous pour répondre.