columm.width: how will I reduce column width if the text in the cell is too long

columm.width: how will I reduce column width if the text in the cell is too long

mahussmahuss Posts: 23Questions: 6Answers: 0

Hello,
I guess I do something totally wrong. My intention is to reduce column width to a specific value. Unfortunately if text inside is longer the column width still fits to the text length. I just do not want too see whole text, just beginning.

It works the same way either with parameter:
"columns": [
{ width: '20px' },
null
],
or
columnDefs: [{ width: 20px, targets: 0 }],

I have tried both: with and without quotes and I am running out of ideas. Could you please look at the sample:

https://live.datatables.net/redufiya/1/edit

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.