@kanunilabs/datagrid-react / LoadOptions
Interface: LoadOptions
Defined in: datagrid-core/dist/index.d.ts:896
Properties
filter?
optionalfilter?:FilterNode|null
Defined in: datagrid-core/dist/index.d.ts:901
Serializable — the same AST goes to worker or server.
group?
optionalgroup?:GroupDescriptor[]
Defined in: datagrid-core/dist/index.d.ts:902
groupKeys?
optionalgroupKeys?: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?
optionalsearchText?:string
Defined in: datagrid-core/dist/index.d.ts:911
skip?
optionalskip?:number
Defined in: datagrid-core/dist/index.d.ts:897
sort?
optionalsort?:SortDescriptor[]
Defined in: datagrid-core/dist/index.d.ts:899
summaries?
optionalsummaries?: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?
optionaltake?:number
Defined in: datagrid-core/dist/index.d.ts:898