TinyBase logoTinyBase β

CustomCell

The CustomCell object is used to configure custom cell rendering in an HTML table.

{
  label?: string;
  component?: ComponentType<CellProps>;
  getComponentProps?: (rowId: Id, cellId: Id) => ExtraProps;
}
TypeDescription
label?string

An optional string that will be used as the label at the top of the table column for this Cell.

component?ComponentType<CellProps>

An optional custom component for rendering each Cell in the Table (to override the default CellView component).

getComponentProps?(rowId: Id, cellId: Id) => ExtraProps

An optional function for generating extra props for each custom Cell component based on Row and Cell Id.

Since

v4.1.0