← DataGrid API

Function · v2.7.1

ngbGroupData

Groups local arrays by one or more field descriptors and returns nested group metadata.

Import

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

Declaration

function ngbGroupData<T>(data: readonly T[] | null | undefined, descriptors: readonly NgbDataGridGroupDescriptor[] | null | undefined): NgbDataGridGroupResult<T>[];

Referenced types

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