t×tecexpressby TeKOcloud
DEv0.7.1
API & types / VUE

TxGroup.

Grouped query data with a group key and count before paging.

ts
interface TxGroup<T> {
  key: unknown
  items: T[] | TxGroup<T>[]
  count: number
}
FieldMeaning
keyStable key or selector; distinct from a widget key.
itemsEntries; replaced by dataSource when bound.
countRecord count in the group.
ts
import type { TxGroup } from '@tekocloud.de/tecexpress'
const example: TxGroup<{ id: number }> = { key: 'team', items: [{ id: 1 }], count: 1 }
console.log(example)