2018-01-05 09:18:19 +00:00
|
|
|
title: $:/plugins/tiddlywiki/dynaview/macros
|
|
|
|
tags: $:/tags/Macro
|
|
|
|
|
|
|
|
\define transclude-when-visible(tiddler,mode:"block",state,minHeight:"1em",loadingText:"…")
|
2018-04-06 07:19:03 +00:00
|
|
|
<$reveal state=<<__state__>> type="match" text="visible" tag="div">
|
2018-05-25 10:08:27 +00:00
|
|
|
<div class="tc-dynaview-set-tiddler-when-visible" data-dynaview-set-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
2018-01-05 09:18:19 +00:00
|
|
|
<$transclude tiddler=<<__tiddler__>> mode=<<__block__>>/>
|
2018-05-25 10:08:27 +00:00
|
|
|
</div>
|
2018-01-05 09:18:19 +00:00
|
|
|
</$reveal>
|
2018-04-06 07:19:03 +00:00
|
|
|
<$reveal state=<<__state__>> type="nomatch" text="visible" tag="div">
|
2018-05-25 10:08:27 +00:00
|
|
|
<div class="tc-dynaview-set-tiddler-when-visible" style="min-height: $minHeight$;" data-dynaview-set-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
2018-01-05 09:18:19 +00:00
|
|
|
$loadingText$
|
|
|
|
</div>
|
2018-05-25 10:08:27 +00:00
|
|
|
</$reveal>
|
2018-01-05 09:18:19 +00:00
|
|
|
\end
|