Grouped query data with a group key and count before paging.
interface TxGroup<T> {
key: unknown
items: T[] | TxGroup<T>[]
count: number
}| Field | Meaning |
|---|---|
| key | Stable key or selector; distinct from a widget key. |
| items | Entries; replaced by dataSource when bound. |
| count | Record count in the group. |
import type { TxGroup } from '@tekocloud.de/tecexpress'
const example: TxGroup<{ id: number }> = { key: 'team', items: [{ id: 1 }], count: 1 }
console.log(example)