API REFERENCE
CellCallbackParams
Fields, allowed values, and APIs that use CellCallbackParams.
Type definition
A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.
export interface CellCallbackParams<TData = GridData, TValue = unknown, TContext = unknown> {
data: Readonly<TData>;
value: TValue;
colDef: ColumnDef<TData, TValue, TContext>;
rowIndex: number;
context: TContext;
api: SyGridApi<TData, TContext>;
node: { rowIndex: number };
colId: string;
formatted?: string;
}APIs using this type
- cellClass
CSS classes for the cell or a callback returning classes.
- cellClassRules
Rules for applying CSS classes conditionally.
- cellStyle
Inline style object, callback, or array of these for the cell.