novo-elements
Version:
Bullhorn's NOVO Element Repository for Angular 2
53 lines (52 loc) • 1.9 kB
TypeScript
import { EventEmitter, ElementRef, OnInit, OnChanges, SimpleChanges } from '@angular/core';
import { NovoOverlayTemplate } from '../overlay/Overlay';
import { NovoLabelService } from '../../services/novo-label-service';
export declare class NovoSelectElement implements OnInit, OnChanges {
element: ElementRef;
labels: NovoLabelService;
name: string;
options: Array<any>;
placeholder: string;
readonly: boolean;
headerConfig: any;
onSelect: EventEmitter<any>;
selectedIndex: number;
empty: boolean;
header: any;
createdItem: any;
selected: any;
model: any;
onModelChange: Function;
onModelTouched: Function;
filterTerm: string;
filterTermTimeout: any;
filteredOptions: any;
/** Element for the panel containing the autocomplete options. */
overlay: NovoOverlayTemplate;
constructor(element: ElementRef, labels: NovoLabelService);
ngOnInit(): void;
ngOnChanges(changes?: SimpleChanges): void;
/** BEGIN: Convienient Panel Methods. */
openPanel(): void;
closePanel(): void;
readonly panelOpen: boolean;
/** END: Convienient Panel Methods. */
/**
* This method closes the panel, and if a value is specified, also sets the associated
* control to that value. It will also mark the control as dirty if this interaction
* stemmed from the user.
*/
setValueAndClose(event: any | null): void;
select(option: any, i: any, fireEvents?: boolean): void;
clear(): void;
onKeyDown(event: KeyboardEvent): void;
scrollToSelected(): void;
scrollToIndex(index: number): void;
toggleHeader(event: any, forceValue: any): void;
highlight(match: any, query: any): any;
escapeRegexp(queryToEscape: any): any;
saveHeader(): void;
writeValue(model: any): void;
registerOnChange(fn: Function): void;
registerOnTouched(fn: Function): void;
}