1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-02 08:50:46 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/demonstrations/TableOfContentsMacro Tabbed Example.tid
Jermolene 47481ed52a Enhance tabbed toc macro with navigation control
Now there are two variants of the macro: the default one opens links
externally, the other opens links internally
2014-11-14 17:06:21 +00:00

28 lines
1.2 KiB
Plaintext

title: TableOfContentsMacro Tabbed Example
caption: Tabbed
tags: table-of-contents-example
!! Tabbed Table of Contents
The tabbed table of contents macro renders a selective expandable table of contents with an attached panel that displays the currently selected tiddler.
!!! Internal navigation
This example shows how to construct a tabbed table of contents with internal navigation, so that clicking links in the displayed tiddler will replace the displayed tiddler.
<$macrocall $name='wikitext-example-without-html'
src='<<toc-tabbed-internal-nav tag:"TableOfContents" selectedTiddler:"$:/temp/toc/selectedTiddler" unselectedText:"Select a topic in the table of contents. Click the arrow to expand a topic.">>
'/>
!!! External navigation
This example shows how to construct a tabbed table of contents with external navigation, so that clicking links in the displayed tiddler will open those tiddlers in the story river in the usual way.
<$macrocall $name='wikitext-example-without-html'
src='<<toc-tabbed tag:"TableOfContents" selectedTiddler:"$:/temp/toc/selectedTiddler" unselectedText:"Select a topic in the table of contents. Click the arrow to expand a topic.">>
'/>