mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Dynaview: Fix transclude-when-visible macro
This commit is contained in:
parent
0338f0fee2
commit
f7fe47914e
@ -2,13 +2,13 @@ title: $:/plugins/tiddlywiki/dynaview/macros
|
|||||||
tags: $:/tags/Macro
|
tags: $:/tags/Macro
|
||||||
|
|
||||||
\define transclude-when-visible(tiddler,mode:"block",state,minHeight:"1em",loadingText:"…")
|
\define transclude-when-visible(tiddler,mode:"block",state,minHeight:"1em",loadingText:"…")
|
||||||
<$reveal state=<<__state__>> type="match" text="visible" tag="div">
|
<$reveal state=<<__state__>> type="nomatch" text="0" tag="div">
|
||||||
<div class="tc-dynaview-set-tiddler-when-visible" data-dynaview-set-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
<div class="tc-dynaview-track-tiddler-when-visible" data-dynaview-track-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
||||||
<$transclude tiddler=<<__tiddler__>> mode=<<__mode__>>/>
|
<$transclude tiddler=<<__tiddler__>> mode=<<__mode__>>/>
|
||||||
</div>
|
</div>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal state=<<__state__>> type="nomatch" text="visible" tag="div">
|
<$reveal state=<<__state__>> type="match" text="0" tag="div">
|
||||||
<div class="tc-dynaview-set-tiddler-when-visible" style="min-height: $minHeight$;" data-dynaview-set-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
<div class="tc-dynaview-track-tiddler-when-visible" style="min-height: $minHeight$;" data-dynaview-track-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
||||||
$loadingText$
|
$loadingText$
|
||||||
</div>
|
</div>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
Loading…
Reference in New Issue
Block a user