Have been attempting to integrate JSON formatting into a SharePoint WebPart List. Using a Kanban styled approach with a table containing several list view web parts.
Need to be able to designate the list and column in the JS file, and perform the formatting for the desired list view.
This is the JS formatting I am attempting to use, just simply to color code a number field based on a Boolean argument.
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", "debugMode": true, "elmType": "div", "attributes": { "class": "=if(@getFieldRef(Days In progress)>10,'sp-field-severity--blocked', '')" }, "children": [ { "elmType": "span", "style": { "display": "inline-block", "padding": "0 4px" } }, { "elmType": "span", "txtContent": "@currentField" } ] }
If anyone has worked with these methods, I would greatly appreciate any direction or advice given.