Interface AggregateFooterOptionsIf<T>

The options of an AreaModelAggregateFooter (and of TableFactory.createTableModel({ footerAggregates })).

Example

const options: AggregateFooterOptionsIf<Order> = {
rows: [
{ label: "Sum", aggregates: { quantity: "sum", total: "sum" } },
{ label: "Average", aggregates: { quantity: "avg", total: "avg" } }
],
labelProperty: "customer", // the labels go into the customer column
rowHeight: 36
};

Since

1.1.94

Type Parameters

  • T = any

Hierarchy

  • AggregateFooterOptionsIf

Properties

getRows?: ((bodyModel) => ArrayLike<T>)

Type declaration

    • (bodyModel): ArrayLike<T>
    • An own source of rows (instead of the body model's rows), e.g. the data of a server response.

      Parameters

      Returns ArrayLike<T>

labelProperty?: string

The column of the labels (property). Default: the first data column without an aggregate in that row.

rowHeight?: number

Height of the footer rows in px. Default 34 (the factory uses defaultRowHeights.footer).

One footer row per entry.

source?: "all" | "filtered"

Which rows are aggregated: "filtered" (default) – the rows the body shows (after externalFilterFunction; in a tree all leaves that pass the filter, expanded or not); "all" – all rows, the filter is ignored.