mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
tabsState should hold a tiddler name rather than a list singleton (#5263)
* tabsState should hold a tiddler name rather than a list singleton * tabsState should hold a tiddler name rather than a list singleton
This commit is contained in:
parent
8798ebadbd
commit
88e29b4558
@ -3,7 +3,7 @@ tags: $:/tags/Macro
|
||||
|
||||
\define tabs(tabsList,default,state:"$:/state/tab",class,template,buttonTemplate,retain,actions,explicitState)
|
||||
<$set name="qualifiedState" value=<<qualify "$state$">>>
|
||||
<$set name="tabsState" filter="[<__explicitState__>minlength[1]] ~[<qualifiedState>]">
|
||||
<$vars tabsState={{{ [<__explicitState__>minlength[1]] ~[<qualifiedState>] }}}>
|
||||
<div class="tc-tab-set $class$">
|
||||
<div class="tc-tab-buttons $class$">
|
||||
<$list filter="$tabsList$" variable="currentTab" storyview="pop"><$set name="save-currentTiddler" value=<<currentTiddler>>><$tiddler tiddler=<<currentTab>>><$button set=<<tabsState>> setTo=<<currentTab>> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}>
|
||||
@ -33,6 +33,6 @@ tags: $:/tags/Macro
|
||||
</$list>
|
||||
</div>
|
||||
</div>
|
||||
</$set>
|
||||
</$vars>
|
||||
</$set>
|
||||
\end
|
||||
|
Loading…
Reference in New Issue
Block a user