display-file

Overview

circle-info

Platform compatibility

Compatible with all platforms.

circle-info

The display-file component was visually updated in version 4.80.0 of JourneyApps Runtime.

The display-file component displays a file that was previously captured.

Basic Example

main.view.xml
<var name="usage_report" type="attachment" />

<display-file label="Usage Report" bind="usage_report" />

Standard Attributes

bind

bindchevron-right

label

labelchevron-right

Advanced Attributes

align-content

align-contentchevron-right

align-controls

align-controlschevron-right

align-label

align-labelchevron-right

control-order

control-orderchevron-right

downloadable

See capture-file > downloadable

fullwidth

See capture-file > fullwidth

hide-filename

See capture-file > hide-filename

id

idchevron-right

label-case

circle-info

Version compatibility

label-case was introduced in version 4.80.0 of the JourneyApps Runtime.

label-casechevron-right

label-color

label-colorchevron-right

show-if and hide-if

show-ifchevron-righthide-ifchevron-right

Component Methods

The following component methods are available when an id is assigned to the component and component.displayFile({id:'my-id'}) is called from JS/TS:

closeMedia

See capture-file > closeMedia

downloadMedia

See capture-file > downloadMedia

openMedia

See capture-file > openMedia

scrollIntoView

See capture-file > scrollIntoView

Last updated