UNPKG

ngu-multiselect-dropdown

Version:

Angular multiselect dropdown component for web applications. Easy to integrate and use. It can be bind to any custom data source and custom filter.

52 lines (51 loc) 2.01 kB
import { EventEmitter, ChangeDetectorRef } from "@angular/core"; import { ControlValueAccessor } from "@angular/forms"; import { ListItem, IDropdownSettings } from "./multiselect-dropdown.module"; import { ListFilterPipe } from "./list-filter.pipe"; export declare const DROPDOWN_CONTROL_VALUE_ACCESSOR: any; export declare class MultiselectDropdownComponent implements ControlValueAccessor { private cdr; private listFilterPipe; _settings: IDropdownSettings; _data: Array<ListItem>; selectedItems: Array<ListItem>; isDropdownOpen: boolean; _placeholder: string; private _sourceDataType; private _sourceDataFields; filter: ListItem; defaultSettings: IDropdownSettings; placeholder: string; disabled: boolean; settings: IDropdownSettings; data: Array<any>; onFilterChange: EventEmitter<ListItem>; onDropDownClose: EventEmitter<ListItem>; onSelect: EventEmitter<ListItem>; onDeSelect: EventEmitter<ListItem>; onSelectAll: EventEmitter<Array<ListItem>>; onDeSelectAll: EventEmitter<Array<ListItem>>; private onTouchedCallback; private onChangeCallback; onFilterTextChange($event: any): void; constructor(cdr: ChangeDetectorRef, listFilterPipe: ListFilterPipe); onItemClick($event: any, item: ListItem): boolean; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; onTouched(): void; trackByFn(index: any, item: any): any; isSelected(clickedItem: ListItem): boolean; isLimitSelectionReached(): boolean; isAllItemsSelected(): boolean; showButton(): boolean; itemShowRemaining(): number; addSelected(item: ListItem): void; removeSelected(itemSel: ListItem): void; emittedValue(val: any): any; objectify(val: ListItem): {}; toggleDropdown(evt: any): void; closeDropdown(): void; toggleSelectAll(): boolean; getFields(inputData: any): any[]; }