Word wrap List Headings with JSON

%3CLINGO-SUB%20id%3D%22lingo-sub-1596080%22%20slang%3D%22en-US%22%3EWord%20wrap%20List%20Headings%20with%20JSON%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1596080%22%20slang%3D%22en-US%22%3E%3CP%3EI%20cannot%20find%20a%20way%20to%20successfully%20force%20the%20column%20headings%20in%20a%20list%20to%20wrap%20instead%20of%20truncate...%20using%20JSON.%26nbsp%3B%20The%20only%20post%20I%20found%20is%20below%2C%20and%20that%20didn't%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22pun%22%3E%7B%3C%2FSPAN%3E%0A%20%20%3CSPAN%20class%3D%22str%22%3E%22%24schema%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22https%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fcolumn-formatting.schema.json%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%2C%3C%2FSPAN%3E%0A%20%20%3CSPAN%20class%3D%22str%22%3E%22elmType%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22div%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%2C%3C%2FSPAN%3E%0A%20%20%3CSPAN%20class%3D%22str%22%3E%22style%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3A%7B%3C%2FSPAN%3E%0A%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22str%22%3E%22white-space%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20class%3D%22str%22%3E%22wrap%22%3C%2FSPAN%3E%0A%20%20%3CSPAN%20class%3D%22pun%22%3E%7D%2C%3C%2FSPAN%3E%0A%20%20%3CSPAN%20class%3D%22str%22%3E%22txtContent%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3A%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22%40currentField%22%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22pun%22%3E%7D%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1596080%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Regular Visitor

I cannot find a way to successfully force the column headings in a list to wrap instead of truncate... using JSON.  The only post I found is below, and that didn't work.

 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "div",
  "style":{
        "white-space":"wrap"
  },
  "txtContent": "@currentField"
}

 

0 Replies