shortening of long strings (Ajax/Responsive)
shortening of long strings (Ajax/Responsive)
My datatables contain a long (100 chars) string of text plus a few other shorter columns. "Responsive" option with "responsivePriority" make the other columns disappear when I make the viewport smaller, the text columns stay visible, but when I make the viewport too small, they disappear altogether because they are too long. So I need them to get truncated with an ellipsis. This has been discussed in a number of places but there doesn't seem to be a final solution to this. Is there?
This question has an accepted answers - jump to answer
Answers
Sounds like you are looking for the Ellipsis plugin.
Kevin
only if it allows the full texts to be displayed if the columns can be displayed, shortening the text only if the space gets too narrow ... the examples that I found just shorten texts (adding an ellipsis) even if there would be enough space to show all of it
ah, it works now without the ellipsis plugin, my css/javascript wizard made it work somehow