Image component written in HTL that renders an adaptive image.
- Native lazy loading enabled by default
- Native loading of optimal rendition
- Image title, description, accessibility text and link
- SVG support
- Styles
- Dynamic Media images support, including Image Presets and Smart Crop
The Image component uses the com.adobe.cq.forms.core.components.models.form.StaticImage
Sling Model as its Use-object.
The following configuration properties are used:
1../fileReference
property or file
child node - will store either a reference to the image file, or the image file
2./name
- defines the name of the field, which will be submitted with the form data
3./description
- the actual text to be rendered is stored here
4./altText
- alternate text for image
5./fieldType
- field type for adaptive form component
6./imageSrc
- Image Src
BLOCK cmp-image
ELEMENT cmp-image__image
The component provides a core.forms.components.image.v1.runtime
client library category that contains the Javascript runtime for the component.
It should be added to a relevant site client library using the embed
property.
The following attributes must be added for the initialization of the image component in the form view:
data-cmp-is="adaptiveFormImage"
data-cmp-adaptiveformcontainer-path="${formstructparser.formContainerPath}"
The following are optional attributes that can be added to the component in the form view:
data-cmp-valid
having a boolean value to indicate whether the field is currently valid or notdata-cmp-required
having a boolean value to indicate whether the field is currently required or notdata-cmp-readonly
having a boolean value to indicate whether the field is currently readonly or notdata-cmp-active
having a boolean value to indicate whether the field is currently active or notdata-cmp-visible
having a boolean value to indicate whether the field is currently visible or notdata-cmp-enabled
having a boolean value to indicate whether the field is currently enabled or not
We support replace feature that allows replacing Reset Button component to any of the below components:
- Text
- Title
- Vendor: Adobe
- Version: v1
- Compatibility: Cloud
- Status: production-ready