{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "style": { "box-sizing": "border-box", "padding": "0 2px" }, "attributes": { "class": { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "IN" ] }, "sp-css-backgroundColor-BgMintGreen sp-css-borderColor-MintGreenFont", { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "WR" ] }, "sp-css-backgroundColor-BgPeach sp-css-borderColor-PeachFont", { "operator": ":", "operands": [ { "operator": "||", "operands": [ { "operator": "||", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "X" ] }, { "operator": "==", "operands": [ "[$field_3]", "OFF" ] } ] }, { "operator": "==", "operands": [ "[$field_3]", "ML" ] } ] }, "sp-css-backgroundColor-BgLightGray sp-css-borderColor-LightGrayFont", { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "" ] }, "sp-css-backgroundColor-BgGold sp-css-borderColor-GoldFont", "" ] } ] } ] } ] } }, "children": [ { "elmType": "span", "style": { "line-height": "16px", "height": "14px" }, "attributes": { "iconName": { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "IN" ] }, "", { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "WR" ] }, "", { "operator": ":", "operands": [ { "operator": "||", "operands": [ { "operator": "||", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "X" ] }, { "operator": "==", "operands": [ "[$field_3]", "OFF" ] } ] }, { "operator": "==", "operands": [ "[$field_3]", "ML" ] } ] }, "", { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "" ] }, "", "" ] } ] } ] } ] }, "class": { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "IN" ] }, "sp-css-color-MintGreenFont", { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "WR" ] }, "sp-css-color-PeachFont", { "operator": ":", "operands": [ { "operator": "||", "operands": [ { "operator": "||", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "X" ] }, { "operator": "==", "operands": [ "[$field_3]", "OFF" ] } ] }, { "operator": "==", "operands": [ "[$field_3]", "ML" ] } ] }, "sp-css-color-LightGrayFont", { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "" ] }, "sp-css-color-GoldFont", "" ] } ] } ] } ] } } }, { "elmType": "span", "style": { "overflow": "hidden", "text-overflow": "ellipsis", "padding": "0 3px" }, "txtContent": "[$field_3]", "attributes": { "class": { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "IN" ] }, "sp-css-color-MintGreenFont", { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "WR" ] }, "sp-css-color-PeachFont", { "operator": ":", "operands": [ { "operator": "||", "operands": [ { "operator": "||", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "X" ] }, { "operator": "==", "operands": [ "[$field_3]", "OFF" ] } ] }, { "operator": "==", "operands": [ "[$field_3]", "ML" ] } ] }, "sp-css-color-LightGrayFont", { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$field_3]", "" ] }, "sp-css-color-GoldFont", "" ] } ] } ] } ] } } } ] }