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

25 lines (24 loc) 713 B
/// <reference types="angular" /> /** * ngTable: Table + Angular JS * * @author Vitalii Savchuk <esvit666@gmail.com> * @url https://github.com/esvit/ng-table/ * @license New BSD License <http://creativecommons.org/licenses/BSD/> */ import { IDirective } from 'angular'; /** * A dynamic version of the {@link ngTable ngTable} directive that accepts a dynamic list of columns * definitions to render * @ngdoc directive * * @example * ```html * <table ng-table-dynamic="$ctrl.tableParams with $ctrl.cols" class="table"> * <tr ng-repeat="row in $data"> * <td ng-repeat="col in $columns">{{row[col.field]}}</td> * </tr> * </table> * ``` */ export declare function ngTableDynamic(): IDirective;