mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
DynaView: force DIVs for transclude-when-visible macro
This commit is contained in:
parent
0c3e549235
commit
bafe447e1c
@ -3,10 +3,10 @@ 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:"…")
|
||||||
<div class="tc-dynaview-set-tiddler-when-visible tc-dynaview-expand-viewport" style="min-height: $minHeight$;" data-dynaview-set-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
<div class="tc-dynaview-set-tiddler-when-visible tc-dynaview-expand-viewport" style="min-height: $minHeight$;" data-dynaview-set-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
||||||
<$reveal state=<<__state__>> type="match" text="visible">
|
<$reveal state=<<__state__>> type="match" text="visible" tag="div">
|
||||||
<$transclude tiddler=<<__tiddler__>> mode=<<__block__>>/>
|
<$transclude tiddler=<<__tiddler__>> mode=<<__block__>>/>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal state=<<__state__>> type="nomatch" text="visible">
|
<$reveal state=<<__state__>> type="nomatch" text="visible" tag="div">
|
||||||
$loadingText$
|
$loadingText$
|
||||||
</$reveal>
|
</$reveal>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user