1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-12 11:10:27 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/test-open-close-branch-buttons.tid

32 lines
839 B
Plaintext
Raw Normal View History

created: 20240207155537595
modified: 20240723104321662
tags: testTOC
title: test-open-close-branch-buttons
type: text/vnd.tiddlywiki
<<wikitext-example-without-html src:"""\procedure closeBranch()
<<toc-closeBranch path:"/Contents" currentTiddler:"Second" manual:yes>>
\end
\procedure openBranch()
<<toc-openBranch path:"/" currentTiddler:"Contents" manual:yes>>
\end
<$button actions=<<openBranch>>>Open whole Tree</$button>
<$button actions=<<closeBranch>>>Close branch: Second</$button>
""">>
''CTRL-click'' will also expand / fold the whole branch.
<<wikitext-example-without-html src:"""<div class="tc-table-of-contents">
<<toc-selective-expandable tag:"Contents">>
</div>""">>
--------
simple docs toc as reference
<<wikitext-example-without-html src:"""<div class="tc-table-of-contents">
<<toc tag:"Contents">>
</div>""">>