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://gist.githubusercontent.com/thechriskent/2e09be14a4b491cfae256220cfca6310/raw/eb9f675bf523208eb840c462d4f716fa92ce14c2/columnFormattingSchema.json", | |
"elmType": "div", | |
"txtContent": "@currentField", | |
"style": { | |
"color": { | |
"operator": "?", | |
"operands": [ | |
{ | |
"operator": "==", |
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
function logItemUsage(itemId, listName) { | |
SP.SOD.executeOrDelayUntilScriptLoaded(function() { | |
var stuff = { | |
ctx: SP.ClientContext.get_current() | |
}; | |
stuff.user = stuff.ctx.get_web().get_currentUser(); | |
stuff.ctx.load(stuff.user); | |
stuff.scope = "{00000000-0000-0000-0000-000000000000}"; | |
stuff.site = stuff.ctx.get_site(); | |
stuff.ctx.load(stuff.site); |
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": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json", | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "svg", | |
"style": { | |
"padding-right": "6px", | |
"width": "13px", | |
"height": "13px", |
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": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json", | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"attributes": { | |
"iconName": "Balloons" | |
}, | |
"style": { |
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": "http://json-schema.org/draft-04/schema#", | |
"title": "CustomtFormatter JSON", | |
"description": "CustomFormatter renderer for SharePoint lists", | |
"definitions": { | |
"customAction": { | |
"type": "object", | |
"additionalProperties": false, | |
"title": "Action object", | |
"description": "Action object for a custom action button", |
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
{ | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"style": { | |
"padding-right": "8px" | |
}, | |
"txtContent": "=if(length([$Title]),[$Title],substring([$FileLeafRef],0,indexOf([$FileLeafRef],'.'))" | |
}, |
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
{ | |
"elmType": "div", | |
"style": { | |
"fill": "#ffaaaa" | |
}, | |
"children": [ | |
{ | |
"elmType": "svg", | |
"style": { | |
"width": "18px", |
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
{ | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"txtContent": "🦄", | |
"style": { | |
"display": "=if([$Rating] >= 1, 'inherit','none'" | |
} | |
}, |
OlderNewer