I am trying hard to get the header text wrapped on a v-data-table component. I tried applying a style to the component - any style that I apply to the tbody elements within the table are being applied. However, I could not get any custom style working for the header (thead element). Please help.
For example, if I have a header such this, how do I wrap it?
{ text: Calories - Very Long Column Name Here which needs to be wrapped to the next line, value: 'calories' , align: 'center',}
Please see this code pen link
Thanks, Vilas
classproperty on your header object (inside headers array), class is then applied to header. Docs says you can also addwidth, but seems like it's not working? - Traxo