1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-01 16:30:46 +00:00
TiddlyWiki5/core/wiki/macros/image-picker.tid
2016-04-22 08:36:29 +01:00

27 lines
486 B
Plaintext

title: $:/core/macros/image-picker
tags: $:/tags/Macro
\define image-picker-inner(actions)
<$button tag="a" tooltip="""$(imageTitle)$""">
$actions$
<$transclude tiddler=<<imageTitle>>/>
</$button>
\end
\define image-picker(actions)
<div class="tc-image-chooser">
<$list filter="[all[shadows+tiddlers]is[image]!has[draft.of]] -[type[application/pdf]] +[sort[title]]" variable="imageTitle">
<$macrocall $name="image-picker-inner" actions="""$actions$"""/>
</$list>
</div>
\end