# CellCallbackParams

Fields, allowed values, and APIs that use CellCallbackParams.

Canonical: https://grid.syidax.com/docs/types/CellCallbackParams/

<a id="definition"></a>

## 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.

```typescript
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;
}
```

<a id="used-by"></a>

## APIs using this type

- [cellClass](https://grid.syidax.com/docs/columns/cellClass.md) — CSS classes for the cell or a callback returning classes.
- [cellClassRules](https://grid.syidax.com/docs/columns/cellClassRules.md) — Rules for applying CSS classes conditionally.
- [cellStyle](https://grid.syidax.com/docs/columns/cellStyle.md) — Inline style object, callback, or array of these for the cell.

<a id="parents"></a>

## Contracts containing this type

- [ColumnDef](https://grid.syidax.com/docs/types/ColumnDef.md)

<a id="related"></a>

## Related types

- [GridData](https://grid.syidax.com/docs/types/GridData.md)
- [ColumnDef](https://grid.syidax.com/docs/types/ColumnDef.md)
- [SyGridApi](https://grid.syidax.com/docs/types/SyGridApi.md)
