Extensions

Press shift + S to search API reference.

React component

CellRenderer

View source

Props

interface CellRendererProps extends CellRendererStyleProps, TooltipAnchorProps<HTMLDivElement>
cellClassNameundefined | string

Additional class names to apply to the cell itself, separated by spaces.

cellStyleReact.CSSProperties

Additional styles to apply to the cell itself.

cellValueunknown

The cell value to render. Either record or cellValue must be provided to the CellRenderer. If both are provided, record will be used.

classNameundefined | string

Additional class names to apply to the cell renderer container, separated by spaces.

fieldField

The Field for a given Record being rendered as a cell.

recordRecord | null | undefined

The Record from which to render a cell. Either record or cellValue must be provided to the CellRenderer. If both are provided, record will be used.

renderInvalidCellValueundefined | function (cellValue: unknown, field: Field) => ReactElement

Render function if provided and validation fails.

shouldWrapundefined | false | true

Whether to wrap cell contents. Defaults to true.

styleReact.CSSProperties

Additional styles to apply to the cell renderer container.