Premium
The group descriptor used by the groupBy
method.
const groupDescriptor: GroupDescriptor[] = [
{
field: 'UnitsInStock',
dir: 'asc',
aggregates: [
{ field: 'UnitsInStock', aggregate: 'sum' },
{ field: 'UnitPrice', aggregate: 'average' },
],
},
];
Name Type Default Description aggregates?
The aggregates which are calculated during grouping.
compare?
(a: any, b: any) => number
A custom function that defines the sort order of the group.
dir?
"desc" | "asc"
The sort order of the group.
field
string
The data item field by which the data will be grouped.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4