UNPKG

2.13 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 { RowNode } from "../../entities/rowNode";
5import { IRowModel, RowBounds } from "../../interfaces/iRowModel";
6import { IDatasource } from "../iDatasource";
7import { BeanStub } from "../../context/beanStub";
8import { RowDataTransaction } from "../clientSide/clientSideRowModel";
9export declare class InfiniteRowModel extends BeanStub implements IRowModel {
10 private gridOptionsWrapper;
11 private filterManager;
12 private sortController;
13 private selectionController;
14 private eventService;
15 private context;
16 private gridApi;
17 private columnApi;
18 private infiniteCache;
19 private rowNodeBlockLoader;
20 private datasource;
21 private rowHeight;
22 getRowBounds(index: number): RowBounds;
23 init(): void;
24 private destroyDatasource();
25 isLastRowFound(): boolean;
26 private addEventListeners();
27 private onFilterChanged();
28 private onSortChanged();
29 private onColumnEverything();
30 destroy(): void;
31 getType(): string;
32 setDatasource(datasource: IDatasource): void;
33 private checkForDeprecated();
34 isEmpty(): boolean;
35 isRowsToRender(): boolean;
36 getNodesInRangeForSelection(firstInRange: RowNode, lastInRange: RowNode): RowNode[];
37 private reset();
38 private createModelUpdatedEvent();
39 private resetCache();
40 private destroyCache();
41 private onCacheUpdated();
42 getRow(rowIndex: number): RowNode;
43 getRowNode(id: string): RowNode;
44 forEachNode(callback: (rowNode: RowNode, index: number) => void): void;
45 getCurrentPageHeight(): number;
46 getRowIndexAtPixel(pixel: number): number;
47 getPageFirstRow(): number;
48 getPageLastRow(): number;
49 getRowCount(): number;
50 updateRowData(transaction: RowDataTransaction): void;
51 isRowPresent(rowNode: RowNode): boolean;
52 refreshCache(): void;
53 purgeCache(): void;
54 getVirtualRowCount(): number;
55 isMaxRowFound(): boolean;
56 setVirtualRowCount(rowCount: number, maxRowFound?: boolean): void;
57 getBlockState(): any;
58}