View as Markdown

API reference: @salmonui/data-grid/engine

AggregatesOptionsinterface

import type { AggregatesOptions } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/aggregates.

interface AggregatesOptions {
    readonly scope?: AggregateScope;
    readonly custom?: Readonly<Record<string, CustomAggregate>> | ((customId: string) => CustomAggregate | undefined);
}
AggregatesOptions members (2)
NameSignatureDescription
scopeoptionalreadonly scope?: AggregateScope;

page (default): with paging, footer and group aggregates cover the rows of the current page. all (disablePageWiseAggregates): they cover every row of the query.

customoptionalreadonly custom?: Readonly<Record<string, CustomAggregate>> | ((customId: string) => CustomAggregate | undefined);

Custom aggregates referenced by customId in commands (functions are not serializable).