I ve recently started working with slickgrids. So getting lots and lots of doubts. How can wordwrap the column headers in slickgrids
I solved this by editing 2 css tags:
In slick-default-theme.css
:
.slick-header-columns {
white-space: pre !important;
height: 45px;
}
The height
here is adjustable to your needs. This was good to display 3 lines.
In slick.grid.css
, change the height
settings on the below tag to 100%
:
.slick-header-column.ui-state-default {
...
height: 100%;
...
}
Hope this helps!
fwiw, the author of slick grid answers this question here: https://github.com/mleibman/SlickGrid/issues/61
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With