mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-30 22:56:17 +00:00
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
title: $:/core/ui/Buttons/fold
|
|
tags: $:/tags/ViewToolbar
|
|
caption: {{$:/core/images/fold-button}} {{$:/language/Buttons/Fold/Caption}}
|
|
description: {{$:/language/Buttons/Fold/Hint}}
|
|
|
|
\whitespace trim
|
|
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" default="show">
|
|
<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
|
|
<%if [<tv-config-toolbar-icons>match[yes]] %>
|
|
{{$:/core/images/fold-button}}
|
|
<%endif%>
|
|
<%if [<tv-config-toolbar-text>match[yes]] %>
|
|
<span class="tc-btn-text">
|
|
<$text text={{$:/language/Buttons/Fold/Caption}}/>
|
|
</span>
|
|
<%endif%>
|
|
</$button>
|
|
</$reveal>
|
|
<$reveal type="match" stateTitle=<<folded-state>> text="hide" default="show">
|
|
<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
|
|
<%if [<tv-config-toolbar-icons>match[yes]] %>
|
|
{{$:/core/images/unfold-button}}
|
|
<%endif%>
|
|
<%if [<tv-config-toolbar-text>match[yes]] %>
|
|
<span class="tc-btn-text">
|
|
<$text text={{$:/language/Buttons/Unfold/Caption}}/>
|
|
</span>
|
|
<%endif%>
|
|
</$button>
|
|
</$reveal>
|