12 lines
625 B
TypeScript
12 lines
625 B
TypeScript
import type { GridValidRowModel } from "./gridRows.js";
|
|
import type { GridCellParams } from "./params/gridCellParams.js";
|
|
/**
|
|
* A function used to process cellClassName params.
|
|
* @param {GridCellParams<R, V>} params The parameters of the cell.
|
|
* @returns {string} The class name to be added to the cell.
|
|
*/
|
|
export type GridCellClassFn<R extends GridValidRowModel = any, V = unknown> = (params: GridCellParams<R, V>) => string;
|
|
/**
|
|
* The union type representing the [[GridColDef]] cell class type.
|
|
*/
|
|
export type GridCellClassNamePropType<R extends GridValidRowModel = any, V = unknown> = string | GridCellClassFn<R, V>; |