Image

A responsive image display component with customizable dimensions and aspect ratio control. Features containment options for different scaling behaviors and supports various image formats with automatic loading state management.


Extends: fieldComponent


Fields

Name

Code

Data Type

Description

Image Width

imgWidth

text

Sets the width of the displayed image

Image Height

imgHeight

text

Sets the height of the displayed image

Aspect Ratio

ratio

text

Defines the aspect ratio for the image display area

Contain

contain

boolean

Ensures the image fits within its container while maintaining aspect ratio

Label

label

multi-locale

Display label for the image component

ID

resourceId

text

Unique identifier for the component

Style Classes

styleClasses

text

CSS classes for styling

Style

style

text

Custom inline styles

Width

widthClass

text

Controls component width

Value

value

text

Image source URL or path

Visible

isVisible

boolean

Controls component visibility

Enabled

enabled

boolean

Controls whether component is enabled

Field Style

fieldStyle

text

Additional field styling options


Methods

Name

Description

onChange

Handles image load completion and triggers change events


Events

Name

Description

onChange

Triggered when the image finishes loading

onBlur

Triggered when the image component loses focus

onFocus

Triggered when the image component gains focus