ResultSortedTableInHtmlTableProps
ResultSortedTableInHtmlTableProps
props are used for components that will render a sorted Table
in an HTML table, such as the SortedTableInHtmlTable
component.
{
queryId: Id;
cellId?: Id;
descending?: boolean;
offset?: number;
limit?: number;
queries?: QueriesOrQueriesId;
customCells?: Ids | {[cellId: Id]: string | CustomResultCell};
sortOnClick?: boolean;
paginator?: boolean | ComponentType<SortedTablePaginatorProps>;
onChange?: (sortAndOffset: [cellId: Id | undefined, descending: boolean, offset: number]) => void;
}
Type | Description | |
---|---|---|
queryId | Id | The |
cellId? | Id | The |
descending? | boolean | Whether the sorting should be in descending order. |
offset? | number | |
limit? | number | |
queries? | QueriesOrQueriesId | The |
customCells? | Ids | {[cellId: Id]: string | CustomResultCell} | An optional list of |
sortOnClick? | boolean | Whether the table should be interactive such that clicking a header changes the sorting and/or direction. |
paginator? | boolean | ComponentType<SortedTablePaginatorProps> | Either |
onChange? | (sortAndOffset: [cellId: Id | undefined, descending: boolean, offset: number]) => void | A function that is called whenever the sorting or pagination of the |
Since
v4.1.0