CellTemplates
is an interface describes your custom cell templates as key-value object.
Key of CellTemplates
interface have to be equal to coresponding cell type
field (with extends Cell
interface).
Definition
interface CellTemplates {
[key: string]: CellTemplate;
}
Example
const myCellTemplates: CellTemplates = {
'flag': FlagCellTemplate,
'dropdownNumber': DropdownNumberCellTemplate,
}
return (
<ReactGrid
{...props}
customCellTemplates={myCellTemplates} // highlight-line
/>
);
Properties
Properties | Type | Properties description |
---|---|---|
[key: string ] | CellTemplate | Type of a cell template and its implementation |