I have a situation in which I want to display data in a FluentUI DetailsList, where column names can be very long, while the column content can be very narrow. In such a case, the header will be truncated. See this codepen.
Is there any way to change this behavior, such that the header text wraps over multiple lines?
While I found this unanswered question from 2 years ago, I couldn't find an answer on the topic on neither Stackoverflow, Github or the offical documentation. Here are some approaches I tried:
- inject a CSS class with
word-break: break-all;
via theheaderClassName
field ofIColumn
- setting
isMultiLine
on the columns - The
DetailsHeader
component itself whose rendering I can override withonRenderDetailsHeader
does not seem to offer any props for customizing how the text is displayed
Is there even a way to achieve the desired behaviour (wrapping over multiple lines instead of truncating long column headers)?