CellTemplates interface

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}    />
);

Properties

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