Skip to main content

Image

The Image component is used to display images in your application.

Properties​

Properties
Description
Image FormatChoose how the image source is provided: Image URL (default) or JS Object. The input field below changes based on the selection.
Image URLShown when Image Format is Image URL. Enter the URL of the image to display.
JS ObjectShown when Image Format is JS Object. Provide an object in the form { name, type, sizeBytes, base64Data }. The image is rendered from type and base64Data as a data:<type>;base64,<base64Data> URL.
AlternativeAlternative (alt) text for the image. Also shown below the broken-image icon if the image fails to load.

Events​

Event
Description
On clickTriggers whenever the user clicks on an image.
info

Check Action Reference docs to get the detailed information about all the Actions.

Component Specific Actions (CSA)​

Following actions of component can be controlled using the component specific actions(CSA):

Action
Description
How To Access
setImageURL( )Sets the image URL.components.image1.setImageURL('https://example.com/img.png')
clearImage( )Clears the image URL.components.image1.clearImage()
setVisibility( )Sets the visibility of the component.components.image1.setVisibility(false)
setLoading( )Sets the loading state of the component.components.image1.setLoading(true)
setDisable( )Disables the component.components.image1.setDisable(true)

Exposed Variables​

VariableDescriptionHow To Access
imageURLThe current image URL. In JS Object mode, this is the generated data: URL.{{components.image1.imageURL}}
alternativeTextAccess the alternative text using this variable.{{components.image1.alternativeText}}
isLoadingIndicates if the component is loading.{{components.image1.isLoading}}
isVisibleIndicates if the component is visible.{{components.image1.isVisible}}
isDisabledIndicates if the component is disabled.{{components.image1.isDisabled}}

Additional Actions​

Action
Description
Configuration Options
Zoom buttonToggle this to enable zoom options inside image.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Rotate buttonToggle this on to enable rotate button in the image.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Show loading stateEnables a loading spinner, often used with isLoading to indicate progress.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
VisibilityControls component visibility.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Dynamic heightAutomatically adjusts the component's height based on its content.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Collapse when hiddenCollapses the component's space when it is hidden, so surrounding components fill the space. Takes effect when the app runs (preview or released app), not on the editor canvas.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
DisableEnables or disables the component.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
TooltipProvides additional information on hover. Supports Plain text, Markdown, and HTML formats.String

Devices​

Property
Description
Expected Value
Show on desktopMakes the component visible in desktop view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Show on mobileMakes the component visible in mobile view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.

Styles​

Image​

Style
Description
Image fitChoose an image fit - similar to object fit for the image from available options: fill, cover, contain, scale-down
ShapeChoose the shape of the image: None, Rounded, Circle or Thumbnail.
AlignmentChoose the image alignment from available options: left, center, right.

Container​

Style
Description
BackgroundAdd a background color to component by providing the HEX color code or choosing the color of your choice from the color-picker.
BorderAdd a border color to component by providing the HEX color code or choosing the color of your choice from the color-picker.
Border radiusAdd the border radius to the component. Available only when Shape is set to None.
PaddingSets the padding between the image and the component border. Choose Default (no padding) or Custom, then enter a padding value in pixels.
Box shadowSets the box shadow properties of the component. Select the box shadow color and adjust the related properties or set it programmatically using fx.

Advanced​

Property
Description
Configuration Options
CSS classAdds a custom CSS class to the component, which can be targeted using Custom Styles for advanced styling.Enter one or more class names.
info

The Advanced section is available only if your plan has the Custom Styles feature enabled.

info

Any property having fx button next to its field can be programmatically configured.