mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
4de1a1adbe
The title shouldn’t include the toolbar name if we’re starting to have buttons which can be placed on more than one toolbar.
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
title: $:/core/ui/Buttons/more
|
|
tags: $:/tags/ViewToolbar
|
|
caption: {{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}
|
|
|
|
\define config-title()
|
|
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
|
\end
|
|
<$button popup=<<qualify "$:/state/popup/more">> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tw-config-toolbar-class>> selectedClass="tw-selected">
|
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
|
{{$:/core/images/down-arrow}}
|
|
</$list>
|
|
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
|
<$text text={{$:/language/Buttons/More/Caption}}/>
|
|
</$list>
|
|
</$button>
|
|
<$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="below" animate="yes">
|
|
<div class="tw-drop-down">
|
|
<$set name="tw-config-toolbar-icons" value="yes">
|
|
<$set name="tw-config-toolbar-text" value="yes">
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more]]" variable="listItem">
|
|
<$reveal type="match" state=<<config-title>> text="hide">
|
|
<$transclude tiddler=<<listItem>>/>
|
|
</$reveal>
|
|
</$list>
|
|
</$set>
|
|
</$set>
|
|
</div>
|
|
</$reveal>
|
|
|