UNPKG

713 BTypeScriptView Raw
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 */
9import { IDirective } from 'angular';
10/**
11 * A dynamic version of the {@link ngTable ngTable} directive that accepts a dynamic list of columns
12 * definitions to render
13 * @ngdoc directive
14 *
15 * @example
16 * ```html
17 * <table ng-table-dynamic="$ctrl.tableParams with $ctrl.cols" class="table">
18 * <tr ng-repeat="row in $data">
19 * <td ng-repeat="col in $columns">{{row[col.field]}}</td>
20 * </tr>
21 * </table>
22 * ```
23 */
24export declare function ngTableDynamic(): IDirective;