I think by default, it takes the text size’s as width so, in order to save more space for larger texts, we have made text to be displayed as vertical(as displayed in the image) but then also it takes the width as ordinary text in colgroup how can we fix this?
I also set the width by using this colWidths: [100, 80. 90] but it seems this is fixed-width not getting increased(auto) when we have more content entered in the cell
How can we fix this? to save more space and as well as auto width adjust when entering them on the cell.
So this should be tested further.
It might be a fact that we need to exclude something from td.innerHTML and dig deeper to get only the SPAN of header.
Thanks for the response,
I have written style to rotate the text(there is no problem there), the problem is
If I set column’s width like this colWidths: [100, 80. 90] column width is not auto-adjusting while I start to type in the cell it just wraps the text with available width https://handsontable.com/docs/7.1.1/demo-resizing.html (This is just wrapping the text but want to auto-adjust width)
How to make the cell to be adjustable while start typing on the cell?
auto adjustable (when you do not set anything, default option)
fixed width (exmple colWidths: [100, 80, 90])
Once you set up a width for a column longer text wraps automatically creating a new row.
At this point there’s no way to set min- or max- widths. And once defined column cannot be reset.
Thanks for the response.
I have attached a fiddle where I set colWidths: 60 to the table columns
But that doesn’t seem to be working, Can you help me to set a default width for columns? https://jsfiddle.net/subashdbc/2n9a4s3z/31/
This is an interesting case. Tthe longer the title column is the wider is the column itself. It happens because Handsontable checks how long is the column and widens the width to fit it. It does not understand that the rotation is added.