Hi Eric,
 

> Use a <$button> widget with class="tc-btn-invisible" to create the 
> heading.  Surround the section content with a corresponding <$reveal> 
> widget.
>

I tried to wrap this inside a macro but it has its limitations:

http://fold.tiddlyspot.com

issuesi1) Only one section can be shown at a time?i2) How to get rid of 
superfluous paragraphs?
testing the macro belowclick link to open result: Test 
<http://fold.tiddlyspot.com/#Test>:

<<fold "!Section One" """and here
comes the content""">><br>
<<fold "!Section Two" """has entirely
different content""">>

a macro to fold sections$:/.tb/macros/fold 
<http://fold.tiddlyspot.com/#%24%3A%2F.tb%2Fmacros%2Ffold>:

\define fold(heading, text)
<$button class="tc-btn-invisible" popup=<<qualify "$:/state/section$heading$">>>

$heading$
</$button>
<$reveal type="nomatch" state=<<qualify "$:/state/section$heading$">> text="">

$text$
</$reveal>
\end

Best wishes,

— tb

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7d2844cb-ceba-4b1c-8cfc-596793affaf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to