2024-02-10 16:58:33 +00:00
|
|
|
created: 20240207155537595
|
2024-07-23 10:50:07 +00:00
|
|
|
modified: 20240723104321662
|
2024-02-10 16:58:33 +00:00
|
|
|
tags: testTOC
|
|
|
|
title: test-open-close-branch-buttons
|
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
2024-07-23 10:50:07 +00:00
|
|
|
<<wikitext-example-without-html src:"""\procedure closeBranch()
|
2024-02-10 16:58:33 +00:00
|
|
|
<<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>
|
2024-07-23 10:50:07 +00:00
|
|
|
""">>
|
2024-02-10 16:58:33 +00:00
|
|
|
|
|
|
|
''CTRL-click'' will also expand / fold the whole branch.
|
|
|
|
|
2024-07-23 10:50:07 +00:00
|
|
|
<<wikitext-example-without-html src:"""<div class="tc-table-of-contents">
|
2024-02-10 16:58:33 +00:00
|
|
|
<<toc-selective-expandable tag:"Contents">>
|
2024-07-23 10:50:07 +00:00
|
|
|
</div>""">>
|
2024-02-10 16:58:33 +00:00
|
|
|
|
|
|
|
--------
|
|
|
|
|
|
|
|
simple docs toc as reference
|
|
|
|
|
2024-07-23 10:50:07 +00:00
|
|
|
<<wikitext-example-without-html src:"""<div class="tc-table-of-contents">
|
2024-02-10 16:58:33 +00:00
|
|
|
<<toc tag:"Contents">>
|
2024-07-23 10:50:07 +00:00
|
|
|
</div>""">>
|