Created
January 7, 2025 09:06
-
-
Save tecchan1107/e8286225ddc5d3691d20ef5df36dfec7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/column-formatting.schema.json", | |
| "elmType": "div", | |
| "style": { | |
| "display": "flex", | |
| "flex-direction": "row" | |
| }, | |
| "children": [ | |
| { | |
| "elmType": "span", | |
| "txtContent": "@currentField.DisplayName" | |
| }, | |
| { | |
| "elmType": "a", | |
| "style": { | |
| "min-width": "28px", | |
| "min-height": "28px", | |
| "border-radius": "50%", | |
| "display": "=if(@currentField=='','none','flex')", | |
| "justify-content": "center", | |
| "align-items": "center", | |
| "font-size": "16px", | |
| "cursor": "pointer", | |
| "text-decoration": "none", | |
| "margin-left": "10px" | |
| }, | |
| "attributes": { | |
| "iconName": "POI", | |
| "class": "ms-bgColor-themeLighter ms-fontColor-neutralSecondary ms-bgColor-themePrimary--hover ms-fontColor-white--hover", | |
| "href": "='https://maps.google.com/maps?q='+@currentField.Coordinates.Latitude+','+@currentField.Coordinates.Longitude", | |
| "target": "_blank" | |
| } | |
| } | |
| ] | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
サンプル画像