created: 20220922135257709 modified: 20220925154754580 tags: $:/tags/Macro title: $:/Macros/ltabs \define ltabs-button() \whitespace trim <$button set=<> setTo=<> default=<<__default__>> selectedClass="tc-tab-selected" tooltip={{!!tooltip}} role="switch">  [[#|$(currentTab)$]]  <$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 ltabs-tab() \whitespace trim <$set name="save-currentTiddler" value=<>> <$tiddler tiddler=<>> <> \end \define ltabs-tab-list() \whitespace trim <$list filter=<<__ltabsList__>> variable="currentTab" storyview="pop"> <> \end \define ltabs-tab-body() \whitespace trim <$list filter=<<__ltabsList__>> variable="currentTab"> <$reveal type="match" state=<> text=<> default=<<__default__>> retain=<<__retain__>> tag="div"> <$transclude tiddler=<<__template__>> mode="block"> <$tiddler tiddler=<>> <$transclude mode="block" /> \end \define ltabs(ltabsList,default,state:"$:/state/tab",class,template,buttonTemplate,retain,actions,explicitState) \whitespace trim <$qualify title=<<__state__>> name="qualifiedState"> <$let ltabsState={{{ [<__explicitState__>minlength[1]] ~[] }}}>
] }}}>
] }}}> <>
] }}}/>
] }}}> <>
\end