mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-26 01:50:28 +00:00
Merge pull request #2147 from matabele/patch-1
Added tooltip option to Tabs macro
This commit is contained in:
commit
7ef60ded52
@ -4,14 +4,16 @@ tags: $:/tags/Macro
|
||||
\define tabs(tabsList,default,state:"$:/state/tab",class,template)
|
||||
<div class="tc-tab-set $class$">
|
||||
<div class="tc-tab-buttons $class$">
|
||||
<$list filter="$tabsList$" variable="currentTab">
|
||||
<$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tc-tab-selected">
|
||||
<$list filter="$tabsList$ +[nsort[order]]" variable="currentTab">
|
||||
<$tiddler tiddler=<<currentTab>> >
|
||||
<$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}>
|
||||
<$set name="tv-wikilinks" value="no">
|
||||
<$transclude tiddler=<<currentTab>> field="caption">
|
||||
<$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/>
|
||||
</$transclude>
|
||||
</$set>
|
||||
</$button>
|
||||
</$tiddler>
|
||||
</$list>
|
||||
</div><div class="tc-tab-divider $class$"/><div class="tc-tab-content $class$">
|
||||
<$list filter="$tabsList$" variable="currentTab">
|
||||
|
Loading…
Reference in New Issue
Block a user