1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 02:50:27 +00:00

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

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>

View File

@ -0,0 +1,6 @@
title: $:/core/ui/Buttons/fold-bar
tags: $:/tags/ViewToolbar
caption: fold-bar
description: Optional bars to fold and unfold tiddlers
<!-- This dummy toolbar button is here to allow visibility of the fold-bar to be controlled as if it were a toolbar button -->