mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-07 01:33:13 -08:00
Rejig the tabs macro to wikify captions
This will allow us to translate tab captions
This commit is contained in:
parent
dea08ed4f8
commit
a2cbc2deb5
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
title: $:/core/ui/PageMacros
|
||||
|
||||
\define tabs(tabsList,default,state:"$:/state/tab")
|
||||
<div class="tw-tab-buttons"><$list filter="$tabsList$" variable="currentTab"><$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tw-tab-selected"><$view tiddler=<<currentTab>> field="caption"><$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/></$view> </$button>
|
||||
<div class="tw-tab-buttons"><$list filter="$tabsList$" variable="currentTab"><$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tw-tab-selected"><$transclude tiddler=<<currentTab>> field="caption"><$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/></$transclude> </$button>
|
||||
</$list>
|
||||
</div>
|
||||
<div class="tw-tab-divider">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue