blob: d9a9e3c6a23b86ee787db131366de04df1e983b4 [file] [log] [blame]
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
export declare interface PopupPluginApi {
/**
* Opens the popup, inserts it into the DOM over current UI.
* Creates the popup if not previously created. Creates and inserts the popup
* content element, if a `moduleName` was provided in the constructor.
* Otherwise you have to call `appendContent()` when the promise resolves.
*/
open(): Promise<PopupPluginApi>;
/**
* Hides the popup.
*/
close(): void;
/**
* Appends the given element as a child to the popup. Only call this method
* when you have called `popup()` without a `moduleName`.
*/
appendContent(el: HTMLElement): void;
}