← DataGrid API

Function · v2.7.0

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.

This project is not affiliated with ng-bootstrap or ngx-bootstrap. Those projects focus mainly on Bootstrap components for Angular. ngbootstrap focuses on Angular UI for data-heavy apps, especially Data Grid, Angular-native Form Builder, drag and drop workflows, documentation examples, and performance-focused Angular patterns.