Skip to main content
Version: 1.0.4

Image

An image from the asset library, the uploads folder or a bound URL. The source is bindable, so one component can show a different image per product, state or selection.

The Image component as it renders with its default settings.The Image component as it renders with its default settings.

Reach for it when you need:

  • Equipment photographs
  • A product image driven by the current batch

Component name: Image · Category: Display

In the palette: Image element

Properties

Any property can be bound to a tag, another component's property, or a query.

PropertyTypeDefaultDescription
srcasset""Pick an image from the asset Library or the Uploads folder, or paste a URL / path. Bindable — e.g. bind a File Manager widget's {{ <name>.selectedItem.ref }} to show the file the operator picked.
altstringImage
widthstring100%
heightstringauto
objectFitenumcoverOptions: cover · contain · fill.
aspectRatiostring""Shape: 1 = square, 16/9, 4/3 (blank = fill the box)
radiusstring""Corner radius: 50% = circle (with aspectRatio 1), or e.g. 8px
stylestyle{}Custom CSS properties

Events

Attach event actions to these in the Event Manager.

EventLabelGroupPayload
clickClickMouseThe DOM event.
dblclickDouble clickMouseThe DOM event.
contextmenuRight clickMouseThe DOM event.
mouseenterMouse enterMouseThe DOM event.
mouseleaveMouse leaveMouseThe DOM event.
Right-click behaves differently in the Designer

contextmenu fires your configured actions at runtime only — in LiveView and in preview. On the Designer canvas the right-click is captured to open the Event Manager, so testing it there will not run your actions. Test right-click in preview.