TinyBase logoTinyBase β

ResultRowProps

ResultRowProps props are used for components that refer to a single Row in a query ResultTable, such as the ResultRowView component.

{
  queryId: Id;
  rowId: Id;
  queries?: QueriesOrQueriesId;
  resultCellComponent?: ComponentType<ResultCellProps>;
  getResultCellComponentProps?: (cellId: 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.

rowIdId

The Id of the Row in the ResultTable to 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.

resultCellComponent?ComponentType<ResultCellProps>

A custom component for rendering each Cell in the Row (to override the default CellView component).

getResultCellComponentProps?(cellId: Id) => ExtraProps

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

separator?ReactElement | string

A component or string to separate each Cell component.

debugIds?boolean

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

Since

v2.0.0