View as Markdown

API reference: @salmonui/data-grid/engine

AggregateInputtype

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

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

type AggregateInput = {
    readonly columnId: ColumnId;
    readonly type: AggregateType;
    readonly customId?: string;
    readonly placement?: readonly ('footer' | 'groupFooter' | 'groupCaption')[];
    readonly format?: string;
};

Serializable aggregate descriptor of aggregates.set.

AggregateInput members (5)
NameSignatureDescription
columnIdreadonly columnId: ColumnId;
typereadonly type: AggregateType;
customIdoptionalreadonly customId?: string;

type: 'custom': key of the function in AggregatesOptions.custom.

placementoptionalreadonly placement?: readonly ('footer' | 'groupFooter' | 'groupCaption')[];
formatoptionalreadonly format?: string;