Expand/collapse a tiddler that has been transcluded into another tiddler

713 views
Skip to first unread message

Andy Green

unread,
Aug 24, 2012, 7:23:54 PM8/24/12
to tiddl...@googlegroups.com
Are there any plugins that make it possible to expand and collapse sections of a tiddler?

Example in pseudocode (showing how a transcluded tiddler could be expanded and collapsed):

Tiddler 1 <text to collapse>  <<tiddler Tiddler 2>> <end text to collapse>

Eric Shulman

unread,
Aug 24, 2012, 10:26:15 PM8/24/12
to TiddlyWiki
The TWCore includes the <<slider>> macro:
<<slider cookie tiddler label tooltip>>
where
cookie: variable to save the state of the slider (e.g.
chkFooSlider)
tiddler: name of the tiddler to include in the slider
label: title text of the slider
tooltip: tooltip text of the slider
for example:
<<slider chkTestSlider [[OptionsPanel]] "Options" "Open advanced
options">>

Note that the slider macro only works with content stored in a
separate tiddler (or tiddler section).

To create sliders using *inline* content, you can install:
http://www.TiddlyTools.com/#NestedSlidersPlugin
which also provides numerous other enhanced slider features, such as:
* lazy sliders (slider content not processed until first opened)
* floating sliders (popup-like display, instead of expand in place)
* hotspot sliders (mouseover opens slider without clicking)
* transient sliders (auto-close slider when another is opened)
* alternative label text for open vs closed sliders
* apply custom CSS classes for 'slider button' and 'slider panel'

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact

Alvin

unread,
Aug 25, 2012, 3:44:54 PM8/25/12
to tiddl...@googlegroups.com
I don't think I can live without your http://www.tiddlytools.com/#NestedSlidersPlugin Eric.  It's one of the plugins I ALWAYS add to my new TiddlyWiki files.


Alvin
Reply all
Reply to author
Forward
0 new messages