Is there an elegant way to have folding sections of tiddlers? I've seen some hacks with buttons but i want to have the usual tiddler folding so i can have each tag transclude tiddlers tagged with it, but have each of those be initially folded.
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7c8ce4d2-42fd-4f77-93df-ce6a4139190e%40googlegroups.com.
Is there an elegant way to have folding sections of tiddlers? I've seen some hacks with buttons but i want to have the usual tiddler folding so i can have each tag transclude tiddlers tagged with it, but have each of those be initially folded.
\define foldit()
<$reveal state="$:/state/folded/$(currentTiddler)$" type="match" text="show">
<$button set="$:/state/folded/$(currentTiddler)$" setTo="hide" class="tc-btn-invisible"><$text text="$(currentTiddler)$" /></$button>
<$transclude tiddler="$(currentTiddler)$" mode="block"/>
</$reveal>
<$reveal state="$:/state/folded/$(currentTiddler)$" type="nomatch" text="show">
<$button set="$:/state/folded/$(currentTiddler)$" setTo="show" class="tc-btn-invisible"><$text text="$(currentTiddler)$" /></$button>
<br>
</$reveal>
\end
<$list filter="[tag[TableOfContents]]">
<<foldit>>
</$list>