rowContainerComponent.d.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { GridOptionsWrapper } from "../gridOptionsWrapper";
  2. export interface RowContainerComponentParams {
  3. eContainer: HTMLElement;
  4. eViewport?: HTMLElement;
  5. eWrapper?: HTMLElement;
  6. hideWhenNoChildren?: boolean;
  7. }
  8. /**
  9. * There are many instances of this component covering each of the areas a row can be entered
  10. * eg body, pinned left, fullWidth. The component differs from others in that it's given the
  11. * elements, there is no template. All of the elements are part of the GridPanel.
  12. */
  13. export declare class RowContainerComponent {
  14. gridOptionsWrapper: GridOptionsWrapper;
  15. private readonly eContainer;
  16. private readonly eViewport;
  17. private readonly eWrapper;
  18. private readonly hideWhenNoChildren;
  19. private childCount;
  20. private visible;
  21. private rowTemplatesToAdd;
  22. private afterGuiAttachedCallbacks;
  23. private scrollTop;
  24. private lastMadeVisibleTime;
  25. private domOrder;
  26. private lastPlacedElement;
  27. constructor(params: RowContainerComponentParams);
  28. setVerticalScrollPosition(verticalScrollPosition: number): void;
  29. private postConstruct;
  30. private checkDomOrder;
  31. getRowElement(compId: number): HTMLElement;
  32. setHeight(height: number): void;
  33. flushRowTemplates(): void;
  34. appendRowTemplate(rowTemplate: string, callback: () => void): void;
  35. ensureDomOrder(eRow: HTMLElement): void;
  36. removeRowElement(eRow: HTMLElement): void;
  37. private checkVisibility;
  38. isMadeVisibleRecently(): boolean;
  39. }