Blog about anything related to my learnings
  • About
  • posts
bluesky
Blog about anything related to my learnings
POSTS

ViewFormatting

๐ŸŽฏ Vertically centred ๐Ÿ“ Icon at top of centred block ๐Ÿ”— Folder name centred + wrapped nicely โœ… Consistent spacing across tiles โœ… Clean and balanced, even when names vary

๐Ÿ–ฑ Click anywhere on tile

Uses native โ†’ navigates to URL_Folder

๐Ÿงญ Hover

Shows URL_Folder via:

Tooltip (title) Browser status bar preview

๐Ÿšซ Selection

Disabled (hideSelection: true) No SharePoint click overlay

๐ŸŽฏ Display

๐Ÿ“ Folder icon ๐Ÿ”— FolderName as the link text โŒ URL field hidden

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/tile-formatting.schema.json",
  "height": 60,
  "width": 254,
  "hideSelection": true,
  "fillHorizontally": true,
  "formatter": {
    "elmType": "a",
    "attributes": {
      "href": "[$URL_Folder]",
      "target": "_blank",
      "class": "sp-card-container",
      "title": "[$URL_Folder]"
    },
    "style": {
      "text-decoration": "none",
      "display": "block"
    },
    "children": [
      {
        "elmType": "div",
        "attributes": {
          "class": "ms-bgColor-white sp-css-borderColor-neutralLight sp-card-borderHighlight sp-card-subContainer"
        },
        "style": {
          "cursor": "pointer"
        },
        "children": [
          {
            "elmType": "div",
            "attributes": {
              "class": "sp-card-displayColumnContainer"
            },
            "children": [
              {
                "elmType": "div",
                "style": {
                  "display": "flex",
                  "align-items": "center",
                  "gap": "6px"
                },
                "children": [
                  {
                    "elmType": "span",
                    "attributes": {
                      "iconName": "FabricFolder"
                    },
                    "style": {
                      "font-size": "16px"
                    }
                  },
                  {
                    "elmType": "span",
                    "attributes": {
                      "class": "ms-fontColor-themePrimary sp-card-content sp-card-highlightedContent"
                    },
                    "txtContent": "=if([$FolderName] == '', 'โ€“', [$FolderName])"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}
    ยฉ Blog about anything related to my learnings 2026
    bluesky