4.0
Interfaces
CellTemplates

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

PropertiesTypeProperties description
[key: string]CellTemplateType of a cell template and its implementation