mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-29 23:40:45 +00:00
27 lines
486 B
Plaintext
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
|
||
|
|