API REFERENCE

cellClassRules

Rules for applying CSS classes conditionally.

What does this API do?

Rules for applying CSS classes conditionally.

Exact input and result types

typescript
cellClassRules?: Record<
    string,
    GridCallback<[CellCallbackParams<TData, TValue, TContext>], boolean> | string
  >
ItemValue
RequiredOptional
Input typeRecord< string, GridCallback<[CellCallbackParams<TData, TValue, TContext>], boolean> | 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