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')"
  }
}
Était-ce utile?

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:

  1. CSS font-weight Property.
  2. Use column formatting to customize SharePoint.
Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top