This is awesome! Thanks for sharing Tobias. The only problem i'm having is there's no way to know that a header can be expanded (or in other words that it hides some content). Is it possible to make it work like is shown here ( http://tiddlywiki.com/#TableOfContents:TableOfContents) for the table of contents with "arrows" pointing to the right or down depending if the header's content is collapsed or expanded? The more i read about TiddlyWiki the more impressed i am... problem is i have no clue yet how to "code" these things/funcionality :(
On Wednesday, September 23, 2015 at 8:08:51 AM UTC+1, 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/04ce3611-10d8-44e2-b2da-21bc21defa07%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

