UNPKG

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