Popover controllers programmatically control the popover component. Popovers can be created and dismissed from the popover controller. View the Popover documentation for a full list of options to pass upon creation.
[DEPRECATED] Use the
popoverControllerexported from core.
async function presentPopover() {
const popoverElement = Object.assign(document.createElement('ion-popover'), {
component: 'profile-page',
event: event
});
document.body.appendChild(popoverElement);
return await popoverElement.present();
}Create a popover overlay with popover options.
Type: Promise<HTMLIonPopoverElement>
Dismiss the open popover overlay.
Type: Promise<boolean>
Get the most recently opened popover overlay.
Type: Promise<HTMLIonPopoverElement | undefined>
Built with StencilJS