1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 10:30:28 +00:00
TiddlyWiki5/plugins/tiddlywiki/dynaview/macros.tid
2018-01-05 09:18:19 +00:00

14 lines
575 B
Plaintext

title: $:/plugins/tiddlywiki/dynaview/macros
tags: $:/tags/Macro
\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">
<$reveal state=<<__state__>> type="match" text="visible">
<$transclude tiddler=<<__tiddler__>> mode=<<__block__>>/>
</$reveal>
<$reveal state=<<__state__>> type="nomatch" text="visible">
$loadingText$
</$reveal>
</div>
\end