TinyBase logoTinyBase

ResultTableProps

ResultTableProps props are used for components that refer to a single query ResultTable, such as the ResultTableView component.

{
  queryId: Id;
  queries?: QueriesOrQueriesId;
  resultRowComponent?: ComponentType<ResultRowProps>;
  getResultRowComponentProps?: (rowId: Id) => ExtraProps;
  separator?: ReactElement | string;
  debugIds?: boolean;
}
TypeDescription
queryIdId

The Id of the query in the Queries object for which the ResultTable will be rendered.

queries?QueriesOrQueriesId

The Queries object to be accessed: omit for the default context Queries object, provide an Id for a named context Queries object, or provide an explicit reference.

resultRowComponent?ComponentType<ResultRowProps>

A custom component for rendering each Row in the Table (to override the default ResultRowView component).

getResultRowComponentProps?(rowId: Id) => ExtraProps

A function for generating extra props for each custom Row component based on its Id.

separator?ReactElement | string

A component or string to separate each Row component.

debugIds?boolean

Whether the component should also render the Id of the query, and its descendent objects, to assist with debugging.

Since

v2.0.0