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 { IScope } from 'angular';
|
10 | import { IColumnDef, IDynamicTableColDef } from './public-interfaces';
|
11 | /**
|
12 | * @private
|
13 | * Service to construct a $column definition used by {@link ngTable ngTable} directive
|
14 | */
|
15 | export declare class NgTableColumn<TCol extends IColumnDef | IDynamicTableColDef> {
|
16 | static $inject: string[];
|
17 | /**
|
18 | * Creates a $column for use within a header template
|
19 | *
|
20 | * @param column the initial definition for $column to build
|
21 | * @param defaultScope the $scope to supply to the $column getter methods when not supplied by caller
|
22 | * @param columns a reference to the $columns array to make available on the context supplied to the
|
23 | * $column getter methods
|
24 | */
|
25 | buildColumn(column: TCol, defaultScope: IScope, columns: IColumnDef[]): IColumnDef;
|
26 | private createDefaults();
|
27 | private createGetterSetter(initialValue);
|
28 | }
|