title: $:/core/macros/tabs tags: $:/tags/Macro code-body: yes \define tabs-button() \whitespace trim <$button set=<> setTo=<> default=<<__default__>> selectedClass="tc-tab-selected" tooltip={{!!tooltip}} role="switch" data-tab-title=<> > <$tiddler tiddler=<>> <$set name="tv-wikilinks" value="no"> <$transclude tiddler=<<__buttonTemplate__>> mode="inline"> <$transclude tiddler=<> field="caption"> <$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/> <<__actions__>> \end \define tabs-tab() \whitespace trim <$set name="save-currentTiddler" value=<>> <$tiddler tiddler=<>> <> \end \define tabs-tab-list() \whitespace trim <$list filter=<<__tabsList__>> variable="currentTab" storyview="pop"> <> \end \define tabs-tab-body() \whitespace trim <$list filter=<<__tabsList__>> variable="currentTab"> <$reveal type="match" state=<> text=<> default=<<__default__>> retain=<<__retain__>> tag="div"> <$transclude tiddler=<<__template__>> mode="block"> <$transclude tiddler=<> mode="block"/> \end \define tabs(tabsList,default,state:"$:/state/tab",class,template,buttonTemplate,retain,actions,explicitState) \whitespace trim <$qualify title=<<__state__>> name="qualifiedState"> <$let tabsState={{{ [<__explicitState__>minlength[1]] ~[] }}}>
] }}}>
] }}}> <>
] }}}/>
] }}}> <>
\end