mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 02:27:19 +00:00
16 lines
699 B
Plaintext
16 lines
699 B
Plaintext
title: $:/plugins/tiddlywiki/dynaview/macros
|
|
tags: $:/tags/Macro
|
|
|
|
\define transclude-when-visible(tiddler,mode:"block",state,minHeight:"1em",loadingText:"…")
|
|
<$reveal state=<<__state__>> type="match" text="visible" tag="div">
|
|
<div class="tc-dynaview-set-tiddler-when-visible" data-dynaview-set-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
|
<$transclude tiddler=<<__tiddler__>> mode=<<__block__>>/>
|
|
</div>
|
|
</$reveal>
|
|
<$reveal state=<<__state__>> type="nomatch" text="visible" tag="div">
|
|
<div class="tc-dynaview-set-tiddler-when-visible" style="min-height: $minHeight$;" data-dynaview-set-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
|
$loadingText$
|
|
</div>
|
|
</$reveal>
|
|
\end
|