virtualList.d.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { Component } from './component';
  2. import { GridOptionsWrapper } from '../gridOptionsWrapper';
  3. import { ManagedFocusComponent } from './managedFocusComponent';
  4. export interface VirtualListModel {
  5. getRowCount(): number;
  6. getRow(index: number): any;
  7. }
  8. export declare class VirtualList extends ManagedFocusComponent {
  9. private readonly cssIdentifier;
  10. private model;
  11. private renderedRows;
  12. private componentCreator;
  13. private rowHeight;
  14. private lastFocusedRow;
  15. gridOptionsWrapper: GridOptionsWrapper;
  16. private eContainer;
  17. constructor(cssIdentifier?: string);
  18. protected postConstruct(): void;
  19. protected isFocusableContainer(): boolean;
  20. protected focusInnerElement(fromBottom: boolean): void;
  21. protected onFocusIn(e: FocusEvent): void;
  22. protected onFocusOut(e: FocusEvent): void;
  23. protected handleKeyDown(e: KeyboardEvent): void;
  24. private navigate;
  25. getLastFocusedRow(): number;
  26. focusRow(rowNumber: number): void;
  27. getComponentAt(rowIndex: number): Component;
  28. private static getTemplate;
  29. private getItemHeight;
  30. ensureIndexVisible(index: number): void;
  31. setComponentCreator(componentCreator: (value: any) => Component): void;
  32. getRowHeight(): number;
  33. getScrollTop(): number;
  34. setRowHeight(rowHeight: number): void;
  35. refresh(): void;
  36. private clearVirtualRows;
  37. private drawVirtualRows;
  38. private ensureRowsRendered;
  39. private insertRow;
  40. private removeRow;
  41. private addScrollListener;
  42. setModel(model: VirtualListModel): void;
  43. }