UNPKG

1.06 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 { IDatasource } from "../iDatasource";
6import { InfiniteBlock } from "./infiniteBlock";
7import { RowNodeCache, RowNodeCacheParams } from "../cache/rowNodeCache";
8export interface InfiniteCacheParams extends RowNodeCacheParams {
9 datasource: IDatasource;
10}
11export declare class InfiniteCache extends RowNodeCache<InfiniteBlock, InfiniteCacheParams> {
12 private eventService;
13 private context;
14 private columnApi;
15 private gridApi;
16 constructor(params: InfiniteCacheParams);
17 private setBeans(loggerFactory);
18 protected init(): void;
19 private moveItemsDown(block, moveFromIndex, moveCount);
20 private insertItems(block, indexToInsert, items);
21 insertItemsAtIndex(indexToInsert: number, items: any[]): void;
22 getRow(rowIndex: number, dontCreatePage?: boolean): RowNode;
23 private createBlock(blockNumber);
24 refreshCache(): void;
25}