2013-11-04 18:21:20 +00:00
|
|
|
title: $:/core/ui/PageMacros
|
|
|
|
|
2013-11-11 15:27:12 +00:00
|
|
|
\define tabs(tabsList,default,state:"$:/state/tab")
|
2013-11-09 17:30:06 +00:00
|
|
|
<div class="tw-tab-buttons"><$list filter="$tabsList$" variable="currentTab"><$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tw-tab-selected"><$view tiddler=<<currentTab>> field="caption"><$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/></$view> </$button>
|
2013-11-04 18:21:20 +00:00
|
|
|
</$list>
|
|
|
|
</div>
|
|
|
|
<div class="tw-tab-divider">
|
|
|
|
</div>
|
|
|
|
<div class="tw-tab-content">
|
|
|
|
<$list filter="$tabsList$" variable="currentTab">
|
|
|
|
<$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> default="$default$">
|
|
|
|
<$transclude tiddler=<<currentTab>>/>
|
|
|
|
</$reveal>
|
|
|
|
</$list>
|
|
|
|
</div>
|
|
|
|
\end
|
|
|
|
{{$:/core/ui/PageTemplate}}
|