UNPKG

1.41 kBTypeScriptView 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 * as ng1 from 'angular';
10import { IColumnDef, ISelectOption } from './public-interfaces';
11/**
12 * @private
13 */
14export interface IInputAttributes extends ng1.IAttributes {
15 ngTableSelectFilterDs: string;
16}
17/**
18 * @private
19 */
20export interface IScopeExtensions {
21 $selectData: ISelectOption[];
22}
23/**
24 * Takes the array returned by $column.filterData and makes it available as `$selectData` on the `$scope`.
25 *
26 * The resulting `$selectData` array will contain an extra item that is suitable to represent the user
27 * "deselecting" an item from a `<select>` tag
28 *
29 * This directive is is focused on providing a datasource to an `ngOptions` directive
30 */
31declare function ngTableSelectFilterDs(): ng1.IDirective;
32/**
33 * @private
34 */
35export declare class NgTableSelectFilterDsController {
36 private $scope;
37 private $attrs;
38 private $q;
39 static $inject: string[];
40 $column: IColumnDef;
41 constructor($scope: ng1.IScope & IScopeExtensions, $parse: ng1.IParseService, $attrs: IInputAttributes, $q: ng1.IQService);
42 private bindDataSource();
43 private hasEmptyOption(data);
44 private getSelectListData($column);
45}
46export { ngTableSelectFilterDs };