Sep 01 2022 11:25 AM
Hi All,
Been scouring a while now looking for an answer. I've seen a lot of posts about this but cannot get anything to work. I am trying to get the 'new title' column to wrap the text so the entire title shows instead of being clipped.
I go to the list > format view > format columns > new title column and then advanced. But anything I try doesn't work.
I'm new to JSON so I know I'm screwing something up.
This is the last code that I tried that seemed to work for others
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "div",
"style":{
"white-space":"wrap"
},
"txtContent": "@currentField"
}
Thanks in advance,
Sep 01 2022 10:15 PM
@amccormack You need to use the view formatting instead of column formatting.
As you are using tile/gallery list view, you have to customize the "Gallery" view:
Follow documentation for more information: view-gallery-formatting
Similar thread for more information: (SP List) How to wrap a text in the format view?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Sep 02 2022 08:44 AM