TinyBase logoTinyBase β

CustomCell

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

{
  label?: string;
  component?: Component<CellViewProps>;
  getComponentProps?: (rowId: Id, cellId: Id) => {[prop: string]: any};
}
TypeDescription
label?string

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

component?Component<CellViewProps>

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

getComponentProps?(rowId: Id, cellId: Id) => {[prop: string]: any}

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

Since

v4.1.0