Skip to content

ImageComponent

Property Type Description Overrides Inherited from
conditions? ConditionalStyle[] - - ComponentBase.conditions
fit? "none" | "contain" | "cover" | "fill" - - -
growToHeight? boolean Stretch the component down to the bottom of its band once the band height is known, e.g. so bordered table cells line up when a neighbour grows. - ComponentBase.growToHeight
height number - - ComponentBase.height
id string Unique within the template. - ComponentBase.id
name? string Optional display name for the designer. - ComponentBase.name
src string URL or data URI. May contain {{ expression }} placeholders. - -
style? StyleProps Inline style, applied over the named style. - ComponentBase.style
styleName? string Name of a style in template.styles. - ComponentBase.styleName
type "image" - ComponentBase.type -
visible? string JavaScript expression; the component is hidden when it evaluates falsy. - ComponentBase.visible
width number - - ComponentBase.width
x number Position relative to the band’s top-left corner, in template units. - ComponentBase.x
y number - - ComponentBase.y