@ngx-performance-ui/ui
Version:
Ngx Performance UI - UI
21 lines (20 loc) • 696 B
TypeScript
import { EventEmitter } from '@angular/core';
import { AbstractNgModelComponent } from '@ngx-performance-ui/core';
export interface SelectOption {
label?: string;
value: any;
}
export declare type SelectListOption = SelectOption | string | number;
export declare class SelectComponent extends AbstractNgModelComponent {
options: SelectListOption[];
selectId: string;
selectClass: string;
compareFn: any;
label: string;
placeholder: string;
select: EventEmitter<any>;
onSelect(value: any): void;
getOptionLabel(option: SelectListOption): string;
trackByFn(_: any, option: SelectListOption): any;
getOptionValue(option: SelectListOption): any;
}