This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

tabs Macro (Examples)

21st February 2015 at 9:17pm

<<tabs "SampleTabOne SampleTabTwo SampleTabThree SampleTabFour" "SampleTabOne" "$:/state/tab1">>

<<tabs "[tag[sampletab]]" "SampleTabTwo" "$:/state/tab2" "tc-vertical">>

<<tabs "[tag[sampletab]nsort[order]]" "SampleTabThree" "$:/state/tab3" "tc-vertical">>

The following example sets the default tab to be the first tiddler selected in the filter and makes the saved state non-persistent (by using "$:/temp/"):

<$set name=tl filter="[tag[sampletab]nsort[order]]">
<$transclude $variable=tabs tabsList=<<tl>> default={{{[enlist<tl>]}}} state="$:/temp/state/tab" class="tc-vertical"/>
</$set>

New in v5.4.0 Dynamic parameters can be used to specify the default tab:

<<tabs "[tag[sampletab]nsort[order]]" default={{{[tag[sampletab]nsort[order]]}}} state="$:/temp/state/tab" class="tc-vertical">>