long line in SearchPanes

long line in SearchPanes

AlessandrovaAlessandrova Posts: 24Questions: 7Answers: 0
edited October 3 in Free community support

Is it possible to wrap a long line in SearchPanes, so that the numbers (on the right end of the line) are visible without scrolling to the right?

I found this page in the documentation, but I would need to wrap the long line:
https://datatables.net/extensions/searchpanes/examples/advanced/longData.html

Thanks!

Answers

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    That example actually looks rather buggy to me. Thanks for the link - I'll look into this when I can.

    Allan

  • AlessandrovaAlessandrova Posts: 24Questions: 7Answers: 0

    Thanks, Allan. I did not realize that the link was aimed to show the line wrap. I thought it warned against having long lines.

  • AlessandrovaAlessandrova Posts: 24Questions: 7Answers: 0

    Dear @allan,

    I guess I found a workaround in this previous thread.

    I used the "ellipsis plugin" in the SearchPanes and the result is what I was looking for: the long lines are truncated so that numbers are visible without scrolling to the right.

    The only issue I experience is that on small screens (mobile phone) the span which is visible on hover doesn't appear...

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    I'm not sure how that would be made to work since phones and tablet's don't really do hover?

    Allan

  • AlessandrovaAlessandrova Posts: 24Questions: 7Answers: 0

    Exactly. That's why a line wrap in the SearchPanes would be the best option (so that the entire line would be always visible, without ellipsis).

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    Once I get a chance to get the ellipsis working, switching to wrapping should just be a simple CSS statement.

    Allan

Sign In or Register to comment.