Forum Discussion
Nicolle Brice
Nov 01, 2018Brass Contributor
JSON to wrap File column
Hi does anyone know if JSON can be used to format the Name column in a document library so that the text wraps rather than being truncated ending "..." but is still a clickable link to the document?
The below kind of works, but you have to double click to open the files.
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"elmType": "div",
"txtContent": {
"operator": "+",
"operands": [
"[$FileName]",
".",
"[$FileName]",
".",
"[$File_x0020_Type]"
]
},
"style": {
"color": "blue",
"cursor": "pointer"
}
}
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"elmType": "div",
"txtContent": {
"operator": "+",
"operands": [
"[$FileName]",
".",
"[$FileName]",
".",
"[$File_x0020_Type]"
]
},
"style": {
"color": "blue",
"cursor": "pointer"
}
}
Thank you
No RepliesBe the first to reply