1 | /// <reference types="angular" />
|
2 | import { IPromise } from 'angular';
|
3 | import { NgTableParams } from '../ngTableParams';
|
4 | import { IDataRowGroup } from '../data';
|
5 | /**
|
6 | * Signature of a function that will called whenever {@link NgTableParams} requires to group
|
7 | * the data rows for display in the table
|
8 | * @param params the table requesting the rows to be grouped
|
9 | */
|
10 | export interface IGetGroupFunc<T> {
|
11 | (params: NgTableParams<T>): IDataRowGroup<T>[] | IPromise<IDataRowGroup<T>[]>;
|
12 | }
|