Hello, Is there a way to collapse/expand a cell due to it having too much data?
Hello, Is there a way to collapse/expand a cell due to it having too much data?
Arkian
Posts: 2Questions: 1Answers: 0
I want to see if there is a way to be able to expand/collapse a table if it has too much data, due to extracting data from a CLOB in my DB (all the data is important so I can't really truncate the value) I want to be able to just show a small bit of the data and if desired, expand it by clicking it for example:
Original view:
Col1 | Col 2 | Col 3
aaa bbbbbbbbbbbbb ccccccc
If I click the row I will see:
Col1 | Col 2 | Col 3
aaa bbbbbbbbbbbbb ccccccc
bbbbbbbbbbbbb
bbbbbbbbbbbbb
bbbbbbbbbbbbb
Is there such a feature?
Thanks in advance!
Regards,
Arkian
This discussion has been closed.
Answers
Sorry, the example got screwed up, hopefully the question is well explained without it, if needed to be rewritten please tell me.
Hi Arkian,
Your best bet would be to grab a jQuery plugin for truncating the text, encapsulate the text inside a specific span element and then use jQuery to enable the truncate on that specific element.
Hope this helps,
I wrote an ellipsis data renderer plug-in for DataTables a little while back. I still need to write it up in a blog post, but there are comment sin the file explaining how it works.
Allan