← DataGrid API

Function · v2.7.1

ngbCalculateDataGridAggregates

Calculates local aggregate values for configured fields.

Import

import { ngbCalculateDataGridAggregates } from '@angular-bootstrap/ngbootstrap';

Declaration

function ngbCalculateDataGridAggregates<T>(data: readonly T[] | null | undefined, descriptors: readonly NgbDataGridAggregateDescriptor[] | null | undefined): NgbDataGridAggregateResults;

Referenced types

Source: src/datagrid/src/data-operations.ts in the installed @angular-bootstrap/ngbootstrap package. Angular compiler metadata and private members are omitted.