Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x02x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Ubuntu 7.04
Web server: Apache2
Perl version: 5.8
Client OS: Centos5
Web Browser: firefox3
Categories: Plugins

-- AtleGundersen - 10 Sep 2008

Answer

ALERT! 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 smile

-- 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

 
Change status to:
Topic revision: r6 - 2008-09-16 - ArthurClemens
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.