1 | /// <reference types="angular" />
|
2 | /**
|
3 | * ngTable: Table + Angular JS
|
4 | *
|
5 | * @author Vitalii Savchuk <esvit666@gmail.com>
|
6 | * @url https://github.com/esvit/ng-table/
|
7 | * @license New BSD License <http://creativecommons.org/licenses/BSD/>
|
8 | */
|
9 | import { IDirective, IQService, IParseService } from 'angular';
|
10 | /**
|
11 | * Directive that instantiates {@link NgTableController NgTableController}.
|
12 | * @ngdoc directive
|
13 | * @name ngTable
|
14 | * @example
|
15 | *
|
16 | * ```html
|
17 | * <table ng-table="$ctrl.tableParams" show-filter="true" class="table table-bordered">
|
18 | * <tr ng-repeat="user in $data">
|
19 | * <td data-title="'Name'" sortable="'name'" filter="{ 'name': 'text' }">
|
20 | * {{user.name}}
|
21 | * </td>
|
22 | * <td data-title="'Age'" sortable="'age'" filter="{ 'age': 'text' }">
|
23 | * {{user.age}}
|
24 | * </td>
|
25 | * </tr>
|
26 | * </table>
|
27 | * ```
|
28 | */
|
29 | export declare function ngTable($q: IQService, $parse: IParseService): IDirective;
|