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

29 lines (28 loc) 1.12 kB
/// <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 { IScope } from 'angular'; import { IColumnDef, IDynamicTableColDef } from './public-interfaces'; /** * @private * Service to construct a $column definition used by {@link ngTable ngTable} directive */ export declare class NgTableColumn<TCol extends IColumnDef | IDynamicTableColDef> { static $inject: string[]; /** * Creates a $column for use within a header template * * @param column the initial definition for $column to build * @param defaultScope the $scope to supply to the $column getter methods when not supplied by caller * @param columns a reference to the $columns array to make available on the context supplied to the * $column getter methods */ buildColumn(column: TCol, defaultScope: IScope, columns: IColumnDef[]): IColumnDef; private createDefaults(); private createGetterSetter(initialValue); }