UNPKG

486 BTypeScriptView Raw
1/// <reference types="angular" />
2import { IPromise } from 'angular';
3import { NgTableParams } from '../ngTableParams';
4import { 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 */
10export interface IGetGroupFunc<T> {
11 (params: NgTableParams<T>): IDataRowGroup<T>[] | IPromise<IDataRowGroup<T>[]>;
12}