mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 15:24:50 +00:00
2b1d38d3ca
* Documentation and examples * Fix the tag of image- and colour-picker macros in documentation
27 lines
510 B
Plaintext
27 lines
510 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,subfilter:"")
|
|
<div class="tc-image-chooser">
|
|
|
|
<$list filter="[all[shadows+tiddlers]is[image]$subfilter$!has[draft.of]] -[type[application/pdf]] +[sort[title]]" variable="imageTitle">
|
|
|
|
<$macrocall $name="image-picker-inner" actions="""$actions$"""/>
|
|
|
|
</$list>
|
|
|
|
</div>
|
|
|
|
\end
|
|
|