Image Viewer
The Image Viewer widget enables you to display an image on your UI.
Image Viewer Properties
Property | Description |
---|---|
Embed URL | Enter the URL of the image that needs to be displayed. |
Image Height | Adjusts the height of the displayed image. |
Rotation | Sets the degree of rotation for the image. [example: When set to 50...] |
API Methods
setVisibility
Sets the Visibility flag for this component.
- Method
- Usage
setVisibility(visible: boolean): void
// Setting the visibility to "true" makes the element visible
a8forms.ImageViewer("imageViewerId").setVisibility(true)
// Setting the visibility to "false" makes the element invisible
a8forms.ImageViewer("imageViewerId").setVisibility(false)
setVisibilityCondition
Sets the visibility condition for this component.
- Method
- Usage
setVisibilityCondition(condition: string): void
// Sets a condition for changing the element's visibility status.
a8forms.ImageViewer("imageViewerId").setVisibilityCondition("1 === 1")
Event Handlers
Event handlers allow you to set triggers for various actions based on the fired events. They are as follows:
onClick
onClick
- Sets the actions to be triggered when the component is clicked.