ITableControlsAdapter
Defined in: core/src/types/index.ts:72
Adapter interface for decoupling data-fetching from table controls. Consuming apps provide an adapter to translate between core state and their specific API query format.
Type Parameters
Section titled “Type Parameters”TItem
TColumnKey
Section titled “TColumnKey”TColumnKey extends string = string
Properties
Section titled “Properties”currentPageItems
Section titled “currentPageItems”currentPageItems:
TItem[]
Defined in: core/src/types/index.ts:84
The current page of items.
getRequestParams
Section titled “getRequestParams”getRequestParams: (
args) =>Record<string,unknown>
Defined in: core/src/types/index.ts:74
Convert filter/sort/pagination state to API request params.
Parameters
Section titled “Parameters”activeSort
Section titled “activeSort”IActiveSortState | null
filters
Section titled “filters”IFilterValues<TColumnKey>
pagination
Section titled “pagination”Returns
Section titled “Returns”Record<string, unknown>
totalItemCount
Section titled “totalItemCount”totalItemCount:
number
Defined in: core/src/types/index.ts:81
Total item count (for server-side pagination).