TinyBase logoTinyBase β

ResultSortedTableViewProps

ResultSortedTableViewProps props are used for components that refer to a single sorted query ResultTable, such as the ResultSortedTableView component.

{
  queryId: Id;
  cellId?: Id;
  descending?: boolean;
  offset?: number;
  limit?: number;
  queries?: QueriesOrQueriesId;
  separator?: Snippet<[]>;
  debugIds?: boolean;
  row?: Snippet<[rowId: Id]>;
}
TypeDescription
queryIdId

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

cellId?Id

The Id of the Cell whose values are used for sorting. If omitted, the view will sort the Row Id itself.

descending?boolean

Whether the sorting should be in descending order.

offset?number

The number of Row Ids to skip for pagination purposes.

limit?number

The maximum number of Row Ids to return.

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.

separator?Snippet<[]>

A component or string to separate each rendered Row.

debugIds?boolean

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

row?Snippet<[rowId: Id]>

A snippet for rendering each Row in the Table, to override the default ResultRowView component.

Since

v8.1.0