Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82436

Ellipsis render with variable char len

$
0
0

Is there any way to use the ellipsis render with variable char length?

What I'm trying to achieve is as follows:
Table takes up 100% of a DIV, (size of div can vary, depending on screen, page view, etc), columns width are all calculated automatically, which is fine, but I will like the content to be limited to 1 line with Ellipsis, Some of the cells will have very long text and it creates 2 or even more rows making the table look bad.

However I have read the documentation of ellipsis plugin and it looks to me I have to define the exact number of chars, which can vary depending on the width of the column...

Hope the question makes sens.

Thank you.


Viewing all articles
Browse latest Browse all 82436


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>