Class ImageRenderer

A cell renderer which renders data values as images.

Hierarchy (view full)

Constructors

Properties

backgroundColor: CellRenderer.ConfigOption<string>

The CSS color for the cell background.

height: CellRenderer.ConfigOption<string>

The height of the image.

placeholder: CellRenderer.ConfigOption<string>

The placeholder text.

textColor: CellRenderer.ConfigOption<string>

The CSS color for drawing the placeholder text.

width: CellRenderer.ConfigOption<string>

The width of the image.

dataCache: Map<string, undefined | HTMLImageElement> = ...

Methods

  • Whether the renderer is ready or not for that specific config. If it's not ready, the datagrid will paint the placeholder. If it's ready, the datagrid will paint the image synchronously.

    Parameters

    Returns boolean

    Whether the renderer is ready for this config or not.