API REFERENCE

cellClass

CSS classes for the cell or a callback returning classes.

What does this API do?

CSS classes for the cell or a callback returning classes.

Exact input and result types

typescript
cellClass?: | string
    | string[]
    | GridCallback<[CellCallbackParams<TData, TValue, TContext>], string>
ItemValue
RequiredOptional
Input type| string | string[] | GridCallback<[CellCallbackParams<TData, TValue, TContext>], string>

Usage flow

Set this on an individual column object in columnDefs. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Read related types

Feature explanations and examples