Skip to main content

Image

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

Properties

Properties
Description
Image URLEnter the URL of the image to display it on the component.
JS ObjectAllows setting an image using a JS object with properties like name, type, size, and base64-encoded data.
AlternativeUsed for alt text of images.

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
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
imageURLAccess the image URL using this variable.{{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.
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.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 border type for the image.
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.
PaddingAdds padding between the image and component border.
Box shadowSets the box shadow properties of the component.
info

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