Hi Tobias, Sorry to bring up such an old issue. Just wanted to check if there is any way to add a arrow indicator to the collapsed section. I tried a few other Macros which have the arrow feature but all of them remove the formatting of the heading text. So would there be a way to add an arrow in your macro? Thanks!!
On Wednesday, September 23, 2015 at 12:38:51 PM UTC+5:30, Tobias Beer wrote: > > 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? > 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a3cbe990-c1aa-44f5-8b48-caf5f564681a%40googlegroups.com.