UNPKG

ng-table

Version:

Table + AngularJS ================= [![Build Status](https://travis-ci.org/esvit/ng-table.svg)](https://travis-ci.org/esvit/ng-table) [![Coverage Status](https://coveralls.io/repos/esvit/ng-table/badge.png)](https://coveralls.io/r/esvit/ng-table) [![seman

22 lines (21 loc) 650 B
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; }