[pmwiki-users] Show/hide or toggle tables?

Donald Z. Osborn dzosborn at gmail.com
Fri Aug 31 19:08:14 CDT 2007


Belated thanks for this Steve. I finally got to it but it isn't working.

I set it up as you suggested, though with tables in the


On 8/15/07, Steve Glover <steve at fell-services.net > wrote:
>
> On Tue, 2007-08-14 at 20:51 -0400, DaveG wrote:
> > At the very least you could wrap the table in a div, and hide that div.
> > In terms of 'table directives', I'm not sure what you mean. If you're
> > wanting to show/hide rows, then possibly; columns, then no.
>
> I'm not sure if you can use divs within a table, but what you could do
> is toggle two divs; the first one having just the header row of your
> table, the second having the header and body:
>
> (from the softflow test page)
>
> (:toggle div=box6 div2=box7 lshow='Show Box 6' lhide='Show Box 7':)
> >>id=box6 width=300px border='1px solid #999' padding=5px bgcolor=#fed<<
> !!!!toggle box swap
> box 6: initial box
> >>id=box7 width=300px border='1px solid #999' padding=5px bgcolor=#efe<<
> !!!!toggle box swap!
> box 7: second box
> >><<
>
> Which can be munged into something like:
>
> (:toggle div=box6 div2=box7 lshow='Show Header' lhide='Show Table':)
> >>id=box6<<
> ||! Table header ||!Column one ||! Column two||
> >>id=box7<<
> ||! Table header ||!Column one ||! Column two||
> || Row one ||Item one || Item two||
> || Row two ||Item three || Item four||
> || Row three ||Item five || Item six||
> >><<
>
> Will that do?
>
> Steve
>
> >   ~ ~ Dave
> >
> > Donald Z. Osborn wrote:
> > > Can both showhide and toggle be used with all kinds of tables? (Esp.
> > > interested in interaction with table directives)
> > >
> > > TIA, Don
> > >
> > > Ref:
> > > http://www.pmwiki.org/wiki/Cookbook/ShowHide
> > > < http://www.pmwiki.org/wiki/Cookbook/ShowHide>
> > > http://www.pmwiki.org/wiki/PmWiki/TableDirectives
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > pmwiki-users mailing list
> > > pmwiki-users at pmichaud.com
> > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> >
> > _______________________________________________
> > pmwiki-users mailing list
> > pmwiki-users at pmichaud.com
> > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> --
> Steve Glover at                          email: steve at fell-services.net
> SDSS, EDINA, University of Edinburgh,          tel: +44 (0)131-650 2908
> Causewayside House, 160 Causewayside,          fax: +44 (0)131-650 3308
> Edinburgh EH9 1PR                          mobile: +44 (0) 7961 446 902
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070831/093a201c/attachment-0001.html 


More information about the pmwiki-users mailing list