Hi Jeremy

Can't get this to work without changing the <<currentTab>> variable to 
<<currentTiddler>> -- in order that the field reference {{!!tooltip}} 
brings in the value for that tab. The following seems to work -- is there 
some reason for the choice of <<currentTab>> rather than the default 
<<currentTiddler>>?

\define tabs(tabsList,default,state:"$:/state/tab",class,template)
<div class="tc-tab-set $class$">
<div class="tc-tab-buttons $class$">
<$list filter="$tabsList$">
<$button set=<<qualify "$state$">> setTo=<<currentTiddler>> 
default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}>
<$set name="tv-wikilinks" value="no">
<$transclude field="caption">
<$macrocall $name="currentTiddler" $type="text/plain" $output="text/plain"/>
</$transclude>
</$set>
</$button>
</$list>
</div><div class="tc-tab-divider $class$"/><div class="tc-tab-content 
$class$">
<$list filter="$tabsList$">

<$reveal type="match" state=<<qualify "$state$">> text=<<currentTiddler>> 
default="$default$">

<$transclude tiddler="$template$" mode="block">

<$transclude mode="block"/>

</$transclude>

</$reveal>

</$list>
</div>
</div>
\end

regards

On Wednesday, 23 December 2015 15:17:36 UTC+2, Jeremy Ruston wrote:
>
> Hi Tobias 
>
> > Nope, but creating a modified version of the core tabs macro is rather 
> simple 
>
> I’d be glad to receive a pull request to add tooltips to the core tabs 
> macro. 
>
> Best wishes 
>
> Jeremy. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bff4b870-3ba3-4700-9aa8-5648a803009f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to