A
A
Andrey Dontsov2018-03-22 22:08:07
JavaScript
Andrey Dontsov, 2018-03-22 22:08:07

Jquery UI - resize table columns. How to compress a column without taking into account its content?

Resize to increase the width of the column works exactly as it should, but to reduce it does not.
A column cannot be shrunk in width less than its contents.
It is important that the contents of the table cells remain in one line, i.e. solving the problem through css property white-space: no-wrap is not suitable.
Please tell me how to compress the column in width so that the content remains without a line break, i.e. the same behavior as the text-overflow: ellipsis style does.
That is, for example, instead of "An example of a long line" -> it was "Note ..." if the column is narrow.
Thank you!

Sandbox example: https://codepen.io/anon/pen/QmgEdo

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Lobas, 2018-03-29
@white_mage

Perhaps so .

X
xmoonlight, 2018-03-30
@xmoonlight

Tried... It turned out like this ..
But I couldn't do the same with the column names... :(
Sorry...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question