folding sections

a test macro

23rd September 2015

9 years ago

a test wiki for folding sections using a fold macro

issues
i1) Only one section can be shown at a time?
testing the macro below
click link to open result: 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:
\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