1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import { IPromise } from 'angular';
|
10 | import { DataResult, IGroupingFunc } from '../core';
|
11 | import { IColumnDef } from './public-interfaces';
|
12 | import { ITableScope } from './ngTableController';
|
13 |
|
14 |
|
15 |
|
16 | export interface IScopeExtensions<T> {
|
17 | $selGroup: IGroupingFunc<any> | string;
|
18 | $selGroupTitle: string;
|
19 | }
|
20 |
|
21 |
|
22 |
|
23 | export declare class NgTableGroupRowController<T> {
|
24 | private $scope;
|
25 | static $inject: string[];
|
26 | private groupFns;
|
27 | constructor($scope: ITableScope<T> & IScopeExtensions<T>);
|
28 | getGroupables(): (IGroupingFunc<any> | IColumnDef)[];
|
29 | getGroupTitle(group: IGroupingFunc<any> | IColumnDef): string;
|
30 | getVisibleColumns(): IColumnDef[];
|
31 | groupBy(group: IGroupingFunc<any> | IColumnDef): void;
|
32 | isSelectedGroup(group: IGroupingFunc<any> | IColumnDef): boolean;
|
33 | toggleDetail(): IPromise<DataResult[]>;
|
34 | private changeSortDirection();
|
35 | private findGroupColumn(groupKey);
|
36 | private isGroupingFunc(val);
|
37 | private setGroup(grouping);
|
38 | }
|