1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 03:19:56 +00:00
TiddlyWiki5/plugins/tiddlywiki/dynaview/macros.tid

16 lines
694 B
Plaintext
Raw Normal View History

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:"…")
<$reveal state=<<__state__>> type="nomatch" text="0" tag="div">
<div class="tc-dynaview-track-tiddler-when-visible" data-dynaview-track-tiddler=<<__state__>> data-dynaview-set-value="visible">
2018-09-26 14:23:49 +00:00
<$transclude tiddler=<<__tiddler__>> mode=<<__mode__>>/>
</div>
2018-01-05 09:18:19 +00:00
</$reveal>
<$reveal state=<<__state__>> type="match" text="0" tag="div">
<div class="tc-dynaview-track-tiddler-when-visible" style="min-height: $minHeight$;" data-dynaview-track-tiddler=<<__state__>> data-dynaview-set-value="visible">
2018-01-05 09:18:19 +00:00
$loadingText$
</div>
</$reveal>
2018-01-05 09:18:19 +00:00
\end