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 { RowNode } from "./entities/rowNode";
5export declare class SelectionController {
6 private eventService;
7 private rowModel;
8 private gridOptionsWrapper;
9 private columnApi;
10 private gridApi;
11 private selectedNodes;
12 private logger;
13 private lastSelectedNode;
14 private groupSelectsChildren;
15 private setBeans(loggerFactory);
16 init(): void;
17 setLastSelectedNode(rowNode: RowNode): void;
18 getLastSelectedNode(): RowNode;
19 getSelectedNodes(): RowNode[];
20 getSelectedRows(): any[];
21 removeGroupsFromSelection(): void;
22 updateGroupsFromChildrenSelections(): void;
23 getNodeForIdIfSelected(id: number): RowNode;
24 clearOtherNodes(rowNodeToKeepSelected: RowNode): number;
25 private onRowSelected(event);
26 syncInRowNode(rowNode: RowNode, oldNode: RowNode): void;
27 private syncInOldRowNode(rowNode, oldNode);
28 private syncInNewRowNode(rowNode);
29 reset(): void;
30 getBestCostNodeSelection(): any;
31 setRowModel(rowModel: any): void;
32 isEmpty(): boolean;
33 deselectAllRowNodes(justFiltered?: boolean): void;
34 selectAllRowNodes(justFiltered?: boolean): void;
35 selectNode(rowNode: RowNode, tryMulti: boolean): void;
36 deselectIndex(rowIndex: number): void;
37 deselectNode(rowNode: RowNode): void;
38 selectIndex(index: any, tryMulti: boolean): void;
39}