UNPKG

964 BTypeScriptView Raw
1// ag-grid-react v26.2.0
2import { Component, ReactPortal } from "react";
3import { ReactComponent } from "./reactComponent";
4export declare class PortalManager {
5 private static MAX_COMPONENT_CREATION_TIME_IN_MS;
6 private parent;
7 private wrappingElement;
8 private destroyed;
9 private portals;
10 private hasPendingPortalUpdate;
11 private maxComponentCreationTimeMs;
12 constructor(parent: Component, wrappingElement?: string, maxComponentCreationTimeMs?: number);
13 getPortals(): ReactPortal[];
14 destroy(): void;
15 destroyPortal(portal: ReactPortal): void;
16 getComponentWrappingElement(): string | undefined;
17 mountReactPortal(portal: ReactPortal, reactComponent: ReactComponent, resolve: (value: any) => void): void;
18 updateReactPortal(oldPortal: ReactPortal, newPortal: ReactPortal): void;
19 private batchUpdate;
20 waitForInstance(reactComponent: ReactComponent, resolve: (value: any) => void, startTime?: number): void;
21}