UNPKG

angular-dropdown-component

Version:

Even though a dropdown (select-option) is a pretty common utility but it still doesn't support basics such as search.

40 lines (39 loc) 1.44 kB
import { EventEmitter, SimpleChanges } from '@angular/core'; import { IDropdownInput } from '../../interfaces/dropdown'; export declare class DropdownComponent { ifContainerFocused: boolean; containerFocusedStyles: object; selectedItemFocusedStyles: object; restOfListFocusedStyles: object; restOfListWithoutFilterFocusedStyles: object; _selectedOption: IDropdownInput | string; _data: IDropdownInput[]; mutationObserverDOM: MutationObserver; data: IDropdownInput[]; disabled: boolean; dTitle: string; selectedOption: IDropdownInput | string; filter: boolean; editable: boolean; selectedOptionChange: EventEmitter<object | string>; private dropdownMenu; private dropdownButton; private dropdownInput; private dropdownFilter; constructor(); ngAfterViewInit(): void; ngOnChanges(simpleChanges: SimpleChanges): void; setDefaultOption(): void; setContainerDimensions(): void; onFilterSearch($event: any): void; setSearchedItems(value: any): void; onInputFocus($event: any): void; onInputChange($event: any): void; onDropdownItemSelect($event: MouseEvent, option: IDropdownInput): void; onDropdownMenuClick($event: MouseEvent): void; onDropdownBlur($event: any): void; clearSearchFilter(): void; showDropdown(): void; hideDropdown(): void; ngOnDestroy(): void; }