UNPKG

1.82 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 { Column } from "../entities/column";
6export declare class PopupService {
7 private gridCore;
8 private gridOptionsWrapper;
9 private environment;
10 private activePopupElements;
11 private getPopupParent();
12 positionPopupForMenu(params: {
13 eventSource: any;
14 ePopup: HTMLElement;
15 }): void;
16 positionPopupUnderMouseEvent(params: {
17 rowNode?: RowNode;
18 column?: Column;
19 type: string;
20 mouseEvent: MouseEvent | Touch;
21 ePopup: HTMLElement;
22 }): void;
23 positionPopupUnderComponent(params: {
24 type: string;
25 eventSource: HTMLElement;
26 ePopup: HTMLElement;
27 column?: Column;
28 rowNode?: RowNode;
29 minWidth?: number;
30 nudgeX?: number;
31 nudgeY?: number;
32 keepWithinBounds?: boolean;
33 }): void;
34 private callPostProcessPopup(ePopup, eventSource, mouseEvent, type, column, rowNode);
35 positionPopupOverComponent(params: {
36 type: string;
37 eventSource: HTMLElement;
38 ePopup: HTMLElement;
39 column: Column;
40 rowNode: RowNode;
41 minWidth?: number;
42 nudgeX?: number;
43 nudgeY?: number;
44 keepWithinBounds?: boolean;
45 }): void;
46 private positionPopup(params);
47 private keepYWithinBounds(params, y);
48 private keepXWithinBounds(params, x);
49 addAsModalPopup(eChild: any, closeOnEsc: boolean, closedCallback?: () => void, click?: MouseEvent | Touch): (event?: any) => void;
50 private isEventFromCurrentPopup(mouseEvent, touchEvent, eChild);
51 private isEventSameChainAsOriginalEvent(originalClick, mouseEvent, touchEvent);
52}