TinyBase logoTinyBase

CustomResultCell

The CustomResultCell object is used to configure custom cell rendering for query results in an HTML table.

{
  label?: string;
  component?: ComponentType<ResultCellProps>;
  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<ResultCellProps>

An optional custom component for rendering each Cell in the ResultTable (to override the default ResultCellView 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