Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / LoadOptions

Interface: LoadOptions

Defined in: datagrid-core/dist/index.d.ts:896

Properties

filter?

optional filter?: FilterNode | null

Defined in: datagrid-core/dist/index.d.ts:901

Serializable — the same AST goes to worker or server.


group?

optional group?: GroupDescriptor[]

Defined in: datagrid-core/dist/index.d.ts:902


groupKeys?

optional groupKeys?: unknown[]

Defined in: datagrid-core/dist/index.d.ts:910

Path of the group being expanded, outermost value first (remote grouping). Empty (or absent) means the top level. Its LENGTH tells the server which level to return: with group: [region, category], groupKeys: ['Berlin'] asks for Berlin's categories, and ['Berlin', 'Toys'] asks for the data rows inside Berlin > Toys.


searchText?

optional searchText?: string

Defined in: datagrid-core/dist/index.d.ts:911


skip?

optional skip?: number

Defined in: datagrid-core/dist/index.d.ts:897


sort?

optional sort?: SortDescriptor[]

Defined in: datagrid-core/dist/index.d.ts:899


summaries?

optional summaries?: SummaryRequest[]

Defined in: datagrid-core/dist/index.d.ts:921

Footer totals to compute over the WHOLE filtered result — SUM(revenue), COUNT(*) and friends, not just the rows in this block.

type: 'custom' never appears here: a custom reducer is a JavaScript function on the client, and the server has no way to run it. A grid whose only aggregation is custom therefore sends nothing, and its footer stays empty on a remote source — which is the honest answer, not a bug.


take?

optional take?: number

Defined in: datagrid-core/dist/index.d.ts:898