display-file (legacy docs)
These display-file
docs are out of date
New functionality and features were added to display-file
in version 4.80.0 of the JourneyApps Runtime. Please refer to the latest docs here.
Configuration
bind
required
Variable/field of the file to display.
Must be a variable or field of type attachment
.
label
required
Text to display above the component. It can be a format string to make the text dynamic. If not specified, defaults to the value of the field specified in bind
. To have no label, specify label=""
.
show-if
optional
Controls whether the component is hidden or shown. The argument specified to show-if
can either be a literal boolean value (true
or false
), or it can specify a variable, parameter or field that can be a string, number, object, etc. that evaluates to false or evaluates to true. If the component also specifies required="true"
, but it is hidden, the validation will be ignored/skipped.
hide-if
optional
The opposite of show-if
(see above).
Last updated