Forum Discussion

jonna1973's avatar
jonna1973
Copper Contributor
Jul 05, 2021

JSON colour not bright enough

Hi, I have JSON set up for sharepoint columns but they are not very bright. Is there a way to amend these?

 

The coding I use is

{
"elmType": "div",
"attributes": {
"class": "=if(@currentField <=0 ,'sp-field-severity--low' ,if(@currentField <=@now+604800000 ,'sp-field-severity--severeWarning',if(@currentField <=(@now+2592000000) ,'sp-field-severity--warning','sp-field-severity--good'))"
},
"children": [
{
"elmType": "span",
"style": {
"display": "inline-block",
"padding": "0 4px"
},
"attributes": {
"iconName": "=if(@currentField <=0 ,'sp-field-severity--low' ,if(@currentField <=@now+604800000 ,'ErrorBadge',if(@currentField <=(@now+2592000000) ,'Error','Forward'))"
}
},
{
"elmType": "span",
"txtContent": "@currentField"
}
]
}
No RepliesBe the first to reply

Resources