Make the fold-bar be selectable as though it were a toolbar button

This commit is contained in:
Jermolene
2015-09-19 09:36:26 +01:00
parent e6529af04e
commit c03dc4c37c
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -1,6 +1,8 @@
title: $:/core/ui/ViewTemplate/unfold
tags: $:/tags/ViewTemplate
<$reveal tag="div" type="nomatch" state="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar" text="hide">
<$reveal tag="div" type="nomatch" state=<<folded-state>> text="hide" default="show" retain="yes" animate="yes">
<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class="tc-fold-banner">
<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
@@ -14,3 +16,5 @@ tags: $:/tags/ViewTemplate
{{$:/core/images/chevron-down}}
</$button>
</$reveal>
</$reveal>