View Title Column.json
{ | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "button", | |
"customRowAction": { | |
"action": "defaultClick" | |
}, | |
"attributes": { | |
"class": "ms-fontColor-neutralPrimary ms-borderColor-white ms-borderColor-neutralPrimary--hover" |
View UnicornEmojis.json
{ | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"txtContent": "🦄", | |
"style": { | |
"display": "=if([$Rating] >= 1, 'inherit','none'" | |
} | |
}, |
View Unicorns.json
{ | |
"elmType": "div", | |
"style": { | |
"fill": "#ffaaaa" | |
}, | |
"children": [ | |
{ | |
"elmType": "svg", | |
"style": { | |
"width": "18px", |
View Document Library Link.json
{ | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"style": { | |
"padding-right": "8px" | |
}, | |
"txtContent": "=if(length([$Title]),[$Title],substring([$FileLeafRef],0,indexOf([$FileLeafRef],'.'))" | |
}, |
View LogItemUsage.js
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); |
View iconFormat.json
{ | |
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json", | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"attributes": { | |
"iconName": "Balloons" | |
}, | |
"style": { |
View svgIconFormat.json
{ | |
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json", | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "svg", | |
"style": { | |
"padding-right": "6px", | |
"width": "13px", | |
"height": "13px", |
NewerOlder