Skip to main content

Function: image()

image(options?): ColumnRenderer

Defined in: layout/column-renderers.ts:90

image() — core's image cell, for a Field that stores a URL string. Call: "the photo column's cell renderer is an image cell."

Default: alt is the Field's formatted value (the caption a reader hears). Optional { alt: 'Company logo' } is a static override for a column that is one picture.

Empty or non-string fieldValue paints an empty cell, never a broken img.

Column tooltip already defaults false. tooltip: true on an image column shows the stored URL unless the Field's formatValue returns a caption. The default tooltip body never sees the renderer.

Parameters​

options?​

alt?​

string

Returns​

ColumnRenderer