Option
Identifier | option |
Allows Multiple | true |
Description
The option
argument lets you add a single option. If you supply only one value (value
), the value
will be displayed in the input field and written to the front-matter.
If you supply two values (value
, name
), the value
will be written to the front-matter and the name
will be displayed in the input field.
Note that the plugin can not differentiate between two options with the same value
, even if the name
is different.
Values
The input field argument option
accepts the following value configurations.
-
option(value: any)
-
value
is the value and display name of the option
-
-
option(value: any, name: any)
-
value
is the value of the option -
name
is the display name of the option
-
Allowed Input Fields
The input field argument option
can be used on the following input fields.
select
multiSelect
suggester
imageSuggester
inlineSelect
listSuggester
inlineListSuggester
imageListSuggester
Examples
INPUT[select(option(banana), option(apple)):bind_target]
INPUT[select( option(1, 1 Star), option(2, 2 Stars), option(3, 3 Stars), option(4, 4 Stars), option(5, 5 Stars)):bind_target]