FORMATER UNE LISTE SHAREPOINT DE GROUP AVEC JSON

  • FORMATER UNE LISTE SHAREPOINT DE GROUP AVEC JSON

    Posté par faddi sur 4 avril 2024 à 13h28

    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 + ')'"
    }
    ]
    }
    ]
    }
    ]
    }
    }
    }

    faddi a répondu Il y a 1 mois, 1 semaine 1 Membre · 0 Réponses
  • 0 Réponses

Désolé, aucune réponse n’a été trouvée.

Connectez-vous pour répondre.