UNPKG

ng5-simple-select

Version:
31 lines (30 loc) 1.15 kB
import { OnInit, OnChanges, ElementRef, AfterContentInit, OnDestroy, EventEmitter } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; export declare class NgSimpleSelectComponent implements OnInit, OnChanges, ControlValueAccessor, AfterContentInit, OnDestroy { private element; disabled: any; showDropdown: boolean; value: any; private subscriptions; displayValue?: string | number; placeholder?: string; change: EventEmitter<any>; private options; constructor(element: ElementRef); ngOnChanges(): void; ngOnInit(): void; ngAfterContentInit(): void; ngOnDestroy(): void; private addParentFnToChildren(options); private setChildHighlightedState(options); toggleDropdown(): void; private childChanges(str); private onDocClick(ev); writeValue(newVal: any): void; registerOnChange(fn: (newVal: any) => void): void; registerOnTouched(fn: () => void): void; onChange: (newVal: any) => void; onTouched: () => void; setDisabledState(isDisabled: boolean): void; private isClickOutsideComponent(ev); }