agList.d.ts 910 B

12345678910111213141516171819202122232425262728293031
  1. import { Component } from "./component";
  2. export interface ListOption {
  3. value: string;
  4. text?: string;
  5. }
  6. export declare class AgList extends Component {
  7. private cssIdentifier;
  8. private options;
  9. private itemEls;
  10. private highlightedEl;
  11. private value;
  12. private displayValue;
  13. static EVENT_ITEM_SELECTED: string;
  14. constructor(cssIdentifier?: string);
  15. private init;
  16. private static getTemplate;
  17. private handleKeyDown;
  18. addOptions(listOptions: ListOption[]): this;
  19. addOption(listOption: ListOption): this;
  20. private renderOption;
  21. setValue(value?: string, silent?: boolean): this;
  22. setValueByIndex(idx: number): this;
  23. getValue(): string | null;
  24. getDisplayValue(): string | null;
  25. refreshHighlighted(): void;
  26. private reset;
  27. private highlightItem;
  28. private clearHighlighted;
  29. private fireChangeEvent;
  30. private fireItemSelected;
  31. }