UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components

32 lines (31 loc) 910 B
import { Component } from "./component"; export interface ListOption { value: string; text?: string; } export declare class AgList extends Component { private cssIdentifier; private options; private itemEls; private highlightedEl; private value; private displayValue; static EVENT_ITEM_SELECTED: string; constructor(cssIdentifier?: string); private init; private static getTemplate; private handleKeyDown; addOptions(listOptions: ListOption[]): this; addOption(listOption: ListOption): this; private renderOption; setValue(value?: string, silent?: boolean): this; setValueByIndex(idx: number): this; getValue(): string | null; getDisplayValue(): string | null; refreshHighlighted(): void; private reset; private highlightItem; private clearHighlighted; private fireChangeEvent; private fireItemSelected; }