(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Image Displayer

Overview

Example Image Displayer

Specs

Tokens

Token Description
displayName Display name in structure panel
imageUrl URL or relative path to image (supports template expressions)
resizeImageStrategy Strategy for sizing/display inside container
width Image width (CSS value; with useStaticSize)
height Image height (CSS value; with useStaticSize)
alt Alternative text for the image
disableScrollbar Hide/show scrollbars when image exceeds container
widthAuto Auto-calculate component width from content
heightAuto Auto-calculate component height from content
paddingClass Padding via CSS class
events Configurable component events
ON_IMAGE_CLICK (Events) Event when user clicks image
ON_INIT (Events) Event on component initialization
ON_DESTROY (Events) Event when component is removed
ON_GLOBAL_PARAMETERS_CHANGE (Events) Event when global parameters change
visibilityPolicySetId Policy set controlling visibility
displayConditions Conditions to display the component
id Unique identifier for programmatic access
dataTestId Testing hook ID
enableAsHotspot Enable as guided tour hotspot
guidedTourHotSpotTitle Title for guided tour hotspot (translations)
guidedTourHotSpotDescription Description for guided tour hotspot (translations)
fitToContainer Strategy: scale to fit, keep aspect ratio
useStaticSize Strategy: use specified width/height
fillWholeContent Strategy: stretch to fill container (may distort)
useRealSize Strategy: show at original dimensions

Structure

(Configured in General Properties)

Imgae URL and settings Image Formatter

(Configured in Visual Properties)

(Configured in Visibility Properties)

  [ 
    { "field": "context.product.hasImage", "operator": "equals", "value": true } 
  ]

Styling

(Configured in Visual Properties)

Visual Properties tab

Actions & Variants

(Configured in Events)

(Configured in Visual Properties)

Tests

(Configured in Testing Hooks)

Authorization

(Configured in Authorization)

Links

Guidelines

Usage

Sizing & Layout

Interactions & Events

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t Article setting(s)
Use fitToContainer to preserve aspect ratio for photos/illustrations. Stretch photos with fillWholeContent unless distortion is intentional. resizeImageStrategy: "fitToContainer" / "fillWholeContent"
Provide concise, descriptive alternative text. Omit alt or reuse file names like IMG_1234. alt
Keep scrollbars enabled when content may overflow. Hide scrollbars and clip content users need to see. disableScrollbar, resizeImageStrategy
Use useStaticSize with width/height for consistent thumbnails. Set width/height without the static-size strategy and expect fixed results. resizeImageStrategy: "useStaticSize", width, height
Render only when a valid URL is present. Show empty/broken placeholders. displayConditions, imageUrl
Make imagery actionable via the click event. Depend on other surfaces to handle image interactions. events.ON_IMAGE_CLICK
Let content define dimensions when appropriate. Force sizes outside the component’s tokens. widthAuto, heightAuto, paddingClass
Localize guided tour copy for hotspots. Ship English-only guidance. enableAsHotspot, guidedTourHotSpotTitle, guidedTourHotSpotDescription

Accessibility