mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 09:30:28 +00:00
Text-slicer: Make sure hide/show gadgets hidden in preview
This commit is contained in:
parent
bc448ce1fd
commit
faa32bc424
@ -5,8 +5,12 @@ tags: $:/tags/AboveStory
|
|||||||
|
|
||||||
<$set name="tv-default-heading-state" value="closed">
|
<$set name="tv-default-heading-state" value="closed">
|
||||||
|
|
||||||
|
<$set name="tv-show-gadgets" value="yes">
|
||||||
|
|
||||||
<$list filter="[toc-type[document]!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/template-document"/>
|
<$list filter="[toc-type[document]!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/template-document"/>
|
||||||
|
|
||||||
</$set>
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
</$scrollable>
|
</$scrollable>
|
||||||
|
@ -9,7 +9,7 @@ $(tv-heading-status-config-title)$/$(currentTiddler)$
|
|||||||
<div class="tc-document-tiddler">
|
<div class="tc-document-tiddler">
|
||||||
<div class="tc-document-tiddler-toolbar">
|
<div class="tc-document-tiddler-toolbar">
|
||||||
|
|
||||||
<$list filter="[<tv-show-gadgets>!prefix[no]]" variable="hasToolbar">
|
<$list filter="[<tv-show-gadgets>prefix[yes]]" variable="hasToolbar">
|
||||||
<$reveal type="nomatch" state=<<tv-heading-status-config-title>> text="open" default=<<tv-default-heading-state>>>
|
<$reveal type="nomatch" state=<<tv-heading-status-config-title>> text="open" default=<<tv-default-heading-state>>>
|
||||||
<$button set=<<tv-heading-status-config-title>> setTo="open" class="tc-btn-invisible">
|
<$button set=<<tv-heading-status-config-title>> setTo="open" class="tc-btn-invisible">
|
||||||
{{$:/core/images/down-arrow}}
|
{{$:/core/images/down-arrow}}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
title: $:/plugins/tiddlywiki/text-slicer/templates/tiddler-toolbar
|
title: $:/plugins/tiddlywiki/text-slicer/templates/tiddler-toolbar
|
||||||
|
|
||||||
|
<$list filter="[<tv-show-gadgets>prefix[yes]]" variable="hasToolbar">
|
||||||
<div class="tc-slice-toolbar">
|
<div class="tc-slice-toolbar">
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TextSlicerToolbar]!has[draft.of]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TextSlicerToolbar]!has[draft.of]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
|
||||||
</div>
|
</div>
|
||||||
|
</$list>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
title: $:/plugins/tiddlywiki/text-slicer/templates/view-document
|
title: $:/plugins/tiddlywiki/text-slicer/templates/view-document
|
||||||
|
|
||||||
<$button>
|
<$button>
|
||||||
<$action-sendmessage $message="tm-open-window" $param=<<currentTiddler>> template="$:/plugins/tiddlywiki/text-slicer/templates/export-full-doc" tv-show-toolbar="no" tv-show-gadgets="no"/>
|
<$action-sendmessage $message="tm-open-window" $param=<<currentTiddler>> template="$:/plugins/tiddlywiki/text-slicer/templates/export-full-doc"/>
|
||||||
View document
|
View document
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -13,10 +13,14 @@ tags: $:/tags/ViewTemplate
|
|||||||
|
|
||||||
<$set name="tv-default-heading-state" value="open">
|
<$set name="tv-default-heading-state" value="open">
|
||||||
|
|
||||||
|
<$set name="tv-show-gadgets" value="yes">
|
||||||
|
|
||||||
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/template-tiddler"/>
|
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/template-tiddler"/>
|
||||||
|
|
||||||
</$set>
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
Loading…
Reference in New Issue
Block a user