shortening of long strings (Ajax/Responsive)

shortening of long strings (Ajax/Responsive)

veloopityveloopity Posts: 87Questions: 36Answers: 2

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

  • kthorngrenkthorngren Posts: 21,336Questions: 26Answers: 4,951
    Answer ✓

    Sounds like you are looking for the Ellipsis plugin.

    Kevin

  • veloopityveloopity Posts: 87Questions: 36Answers: 2

    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

  • veloopityveloopity Posts: 87Questions: 36Answers: 2

    ah, it works now without the ellipsis plugin, my css/javascript wizard made it work somehow

Sign In or Register to comment.