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
cellClass?: | string
| string[]
| GridCallback<[CellCallbackParams<TData, TValue, TContext>], string>| Item | Value |
|---|---|
| Required | Optional |
| 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
- Customize cell appearance
Cell renderers change how data is displayed. Use them for status badges, links, and action buttons while retaining the original values for sorting and filtering.