stf-angular-select
Version:
Custom reusable select for angular with wide posibilities
33 lines (32 loc) • 1.43 kB
TypeScript
/// <reference types="angular-translate" />
/// <reference types="angular" />
import * as angular from 'angular';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/throttleTime';
import 'rxjs/add/operator/debounceTime';
import 'rxjs/add/observable/fromEvent';
export interface IScopeStfSelect extends angular.IScope {
label: string;
ngModel: any;
focused: boolean;
fixNgModal: boolean;
selectId: number;
ngDisabled: boolean;
disabled: boolean;
optionsClass: string;
}
export declare class StfSelectDirective {
protected $translate: angular.translate.ITranslateService;
protected $window: angular.IWindowService;
protected $compile: angular.ICompileService;
protected _NP_STF_SELECT_THROTTLE_TIME: number;
_getScope: () => IScopeStfSelect;
template: string;
restrict: string;
require: string;
scope: any;
transclude: any;
constructor($translate: angular.translate.ITranslateService, $window: angular.IWindowService, $compile: angular.ICompileService, _NP_STF_SELECT_THROTTLE_TIME: number);
link(scope: IScopeStfSelect, element: any, attributes: any, ngModelController: angular.INgModelController, transcludeFn: angular.ITranscludeFunction): void;
static Factory($translate: angular.translate.ITranslateService, $window: angular.IWindowService, $compile: angular.ICompileService, NP_STF_SELECT_THROTTLE_TIME: number): StfSelectDirective;
}