From 03519c14b06f86880259b21d3ba07f646606e828 Mon Sep 17 00:00:00 2001 From: William Jackson Date: Wed, 23 Dec 2015 20:55:03 +0200 Subject: [PATCH 1/2] Added tooltip option Tooltips should be entered in the 'tooltip' field of each tab tiddler --- core/wiki/macros/tabs.tid | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/wiki/macros/tabs.tid b/core/wiki/macros/tabs.tid index da07dd2ee..df39d8f78 100644 --- a/core/wiki/macros/tabs.tid +++ b/core/wiki/macros/tabs.tid @@ -5,13 +5,15 @@ tags: $:/tags/Macro
<$list filter="$tabsList$" variable="currentTab"> -<$button set=<> setTo=<> default="$default$" selectedClass="tc-tab-selected"> +<$tiddler tiddler=<> > +<$button set=<> setTo=<> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}> <$set name="tv-wikilinks" value="no"> <$transclude tiddler=<> field="caption"> <$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/> +
<$list filter="$tabsList$" variable="currentTab"> From b7c2063f63520151ca93b9750ac92cd6320ada32 Mon Sep 17 00:00:00 2001 From: William Jackson Date: Thu, 24 Dec 2015 09:02:33 +0200 Subject: [PATCH 2/2] Added sorting on 'order' field by default What do you think of this idea? --- core/wiki/macros/tabs.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wiki/macros/tabs.tid b/core/wiki/macros/tabs.tid index df39d8f78..4d1a9dfc0 100644 --- a/core/wiki/macros/tabs.tid +++ b/core/wiki/macros/tabs.tid @@ -4,7 +4,7 @@ tags: $:/tags/Macro \define tabs(tabsList,default,state:"$:/state/tab",class,template)
-<$list filter="$tabsList$" variable="currentTab"> +<$list filter="$tabsList$ +[nsort[order]]" variable="currentTab"> <$tiddler tiddler=<> > <$button set=<> setTo=<> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}> <$set name="tv-wikilinks" value="no">