Handsontable: Word Wrap in Column Header

Created on 26 Jul 2013  路  3Comments  路  Source: handsontable/handsontable

I was able to lengthen the column headers but is it possible to make the text wrap to the next line instead of just getting cut off?

Question

Most helpful comment

Hmm... Maybe try add some CSS into your headers:

.handsontable table thead th {
  white-space: pre-line;
  max-width: /* enter here your max header width */
}

All 3 comments

Hmm... Maybe try add some CSS into your headers:

.handsontable table thead th {
  white-space: pre-line;
  max-width: /* enter here your max header width */
}

Awesome. Worked like a charm. Thanks.

Was this page helpful?
0 / 5 - 0 ratings