Skip to content

Events and Handlers

The Image component has the following events and handlers available for use:

Events

Event
Description
On Click Event
Occurs when the user clicks the component. It allows you to define actions or behaviors that will be triggered when the component is clicked, providing interactivity to your application.
On Mouse Over Event
Triggers when the mouse pointer hovers over the component.
On Mouse Out Event
Triggers when the mouse pointer leaves the component boundaries.
On Visibility Change
Gets activated when the visibility state of the component is altered. You can use this event to define actions that need to take place when the component becomes visible or hidden.
On Load Event
Triggers before the image is retrieved from the source URL.
On Error Event
Gets triggered when an image fails to load from the source URL.

Handlers

Handler
Description
Class List Logic
This logic involves modifying the CSS classes associated with the component dynamically.
Styles Logic
Allows you to change the styles of the component dynamically.
Visibility Logic
Allows controlling the visibility of the component based on certain conditions. You can use this event to show or hide the component depending on user actions or other factors. If the handler returns true, the component will be visible.
Source URL Logic
Determines the source URL for the image. This URL represents a path to the file stored in the Backendless cloud.