ng-table
Version:
Table + AngularJS ================= [](https://travis-ci.org/esvit/ng-table) [](https://coveralls.io/r/esvit/ng-table) [![seman
22 lines (21 loc) • 650 B
TypeScript
import { SortDirection } from '../sorting';
export declare type Grouping<T> = IGroupValues | IGroupingFunc<T>;
export declare type GroupSort = SortDirection | '';
/**
* Signature of a function that should return the name of the group
* that the `item` should be placed within
*/
export interface IGroupingFunc<T> {
(item: T): string;
/**
* leave undefined to let the value of `ISettings.groupOptions.defaultSort` apply
*/
sortDirection?: GroupSort;
title?: string;
}
/**
* Map of the names of fields on a data row and the corrosponding sort direction
*/
export interface IGroupValues {
[name: string]: GroupSort;
}