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

Related issues

AMBudnik picture AMBudnik  路  3Comments

feberhard picture feberhard  路  3Comments

jeremy-smith-maco picture jeremy-smith-maco  路  3Comments

korssane picture korssane  路  3Comments

wszymanski picture wszymanski  路  3Comments