Question
Hi! Does anyone know if it is possible to have a table with a number of rows that one can collapse (as
TwistyPlugin do with text)? I have tried with
TwistyPlugin, but it fails as the twisty statement split the table in two. Have searched all over, but can't find anything that seems to do this. Any suggestions?
Environment
--
AtleGundersen - 10 Sep 2008
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
See
Wikilearn: FoldingTest.
I think that almost does what you want, depending on whether you want to hide the entire table or selected rows only. The problem when dealing with selected rows is that those selected rows become an independent table--contiguous with rows preceding or succeeding it, but not of the same width.
I'm guessing that's the same thing you're describing when you say Twisty splits the table in two. I don't see a way around it--maybe someone with more knowledge of HTML knows a way.
--
RandyKramer - 11 Sep 2008
Hi and thanks for learning example.
It gave me some hints, so I fooled around the web searching for onclick table examples. Due to the splitting of Twiki tables, I decided to implement my table in HTML together with javaScript, according to this example:
http://www.aspcode.net/Javascript-hide/show-multiple-table-rows.aspx
Now my table folding is working OK
--
AtleGundersen - 15 Sep 2008
You're welcome, and thank you for the aspcode.net link!
--
RandyKramer - 15 Sep 2008
The problem is the TML that does not allow to insert lines between table rows. Using a hardcoded table (using table tags) would also allow you to work with TwistyPlugin.
--
ArthurClemens - 16 Sep 2008