mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 01:26:18 +00:00
0cfe6597d4
* add a core icon selector to the docs * Add Icon Gallery and improve links to expose the function * re-add the ImageGallery Example tiddler
22 lines
895 B
Plaintext
22 lines
895 B
Plaintext
caption: image-picker
|
|
created: 20160418155531395
|
|
modified: 20211018102346306
|
|
tags: Macros [[Core Macros]]
|
|
title: image-picker Macro
|
|
type: text/vnd.tiddlywiki
|
|
|
|
The <<.def image-picker>> [[macro|Macros]] displays an interactive image picker, as can be seen in the core text editor.
|
|
|
|
!! Parameters
|
|
|
|
;actions
|
|
: Wikitext for the action widgets that should be executed when the user selects an image. Within the text, the variable `imageTitle` contains the title of the tiddler containing the selected image.
|
|
;subfilter
|
|
: An optional extra [[filter step|Filter Step]], e.g. `tag[MyTag]`
|
|
|
|
The images are selected by means of a [[filter expression|Filter Expression]], into which the <<.param subfilter>> parameter is spliced as follows:
|
|
|
|
> `[all[shadows+tiddlers]is[image]$subfilter$!has[draft.of]] -[type[application/pdf]] +[sort[title]]`
|
|
|
|
See: <<.macro-examples "image-picker">> and [[Icon Gallery]]
|