mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +00:00
Make the fold-bar be selectable as though it were a toolbar button
This commit is contained in:
parent
e6529af04e
commit
c03dc4c37c
@ -1,6 +1,8 @@
|
|||||||
title: $:/core/ui/ViewTemplate/unfold
|
title: $:/core/ui/ViewTemplate/unfold
|
||||||
tags: $:/tags/ViewTemplate
|
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">
|
<$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">
|
<$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>>/>
|
<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
|
||||||
@ -14,3 +16,5 @@ tags: $:/tags/ViewTemplate
|
|||||||
{{$:/core/images/chevron-down}}
|
{{$:/core/images/chevron-down}}
|
||||||
</$button>
|
</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
|
||||||
|
</$reveal>
|
||||||
|
6
core/ui/ViewToolbar/fold-bar.tid
Normal file
6
core/ui/ViewToolbar/fold-bar.tid
Normal 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 -->
|
Loading…
x
Reference in New Issue
Block a user