@kanunilabs/datagrid-react / LoadOptions
Interface: LoadOptions
Properties
filter?
optionalfilter?:FilterNode|null
Serializable — the same AST goes to worker or server.
group?
optionalgroup?:GroupDescriptor[]
groupKeys?
optionalgroupKeys?:unknown[]
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
skip?
optionalskip?:number
sort?
optionalsort?:SortDescriptor[]
summaries?
optionalsummaries?:SummaryRequest[]
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