Insert bold in column formatting
-
08-02-2021 - |
Question
How do I insert code so this will also become Bold?
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"debugMode": true,
"txtContent": "@currentField",
"style": {
"color": "=if([$Ev_x002e__x0020_sluttid] <=[$_x00c4_rende_x0020_p_x00e5_b_x00], '#ff0000', '#32CD32')"
}
}
La solution
Try this:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"debugMode": true,
"txtContent": "@currentField",
"style": {
"color": "=if([$Ev_x002e__x0020_sluttid] <=[$_x00c4_rende_x0020_p_x00e5_b_x00], '#ff0000', '#32CD32')",
"font-weight": "bold"
}
}
References:
Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange