mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-27 19:42:50 +00:00
![Simon Baird](/assets/img/avatar_default.png)
Reasons: - can show or hide the button text with CSS (assuming tv-config-toolbar-text is yes). - can have different looking buttons in the page controls versus the view toolbar, etc - more flexibility styling the button appearance, for example you can change the text size compared to the icon size - button appearance is more themeable
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
title: $:/core/ui/Buttons/more-tiddler-actions
|
|
tags: $:/tags/ViewToolbar
|
|
caption: {{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}
|
|
description: {{$:/language/Buttons/More/Hint}}
|
|
|
|
\define config-title()
|
|
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
|
\end
|
|
<$button popup=<<qualify "$:/state/popup/more">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
{{$:/core/images/down-arrow}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/More/Caption}}/></span>
|
|
</$list>
|
|
</$button>
|
|
<$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="below" animate="yes">
|
|
<div class="tc-drop-down">
|
|
<$set name="tv-config-toolbar-icons" value="yes">
|
|
<$set name="tv-config-toolbar-text" value="yes">
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]" variable="listItem">
|
|
<$reveal type="match" state=<<config-title>> text="hide">
|
|
<$transclude tiddler=<<listItem>>/>
|
|
</$reveal>
|
|
</$list>
|
|
</$set>
|
|
</$set>
|
|
</div>
|
|
</$reveal>
|
|
|