Configuration for the store, keys, query, paging and local or remote processing.
interface TxDataSourceConfig<T> extends Omit<
TxLoadOptions<T>,
'skip' | 'take' | 'signal'
> {
store: TxStore<T> | T[]
key?: TxSelector<T>
pageSize?: number
pageIndex?: number
paginate?: boolean
remoteOperations?: boolean
map?: (item: T) => T
}| Field | Meaning |
|---|---|
| store | Data collection or custom store contract. |
| key | Stable key or selector; distinct from a widget key. |
| pageSize | Records per page. |
| pageIndex | Zero-based page index. |
| paginate | Enables paging; false loads the whole collection. |
| remoteOperations | Store handles queries itself; automatically enabled for custom stores. |
| map | Transformation of each loaded visible record. |
| sort | Sort descriptors in priority order. |
| filter | Filter expression. |
| searchExpr | Search fields or getters. |
| searchValue | Search text; local search ignores case. |
| group | Group descriptors or group name. |
| select | Projection before final mapping. |
| requireTotalCount | Requests the total count before paging. |
| requireGroupCount | Requests the number of top-level groups. |
import type { TxDataSourceConfig } from '@tekocloud.de/tecexpress'
const example: TxDataSourceConfig<{ id: number }> = { store: [{ id: 1 }], key: 'id', pageSize: 10 }
console.log(example)