Files
ionic-framework/core/src/components/modal-controller

ion-modal-controller

Modal controllers programmatically control the modal component. Modals can be created and dismissed from the modal controller. View the Modal documentation for a full list of options to pass upon creation.

[DEPRECATED] Use the modalController exported from core.

Methods

create<T extends ComponentRef>(options: ModalOptions<T>) => Promise<HTMLIonModalElement>

Create a modal overlay with modal options.

Returns

Type: Promise<HTMLIonModalElement>

dismiss(data?: any, role?: string | undefined, id?: string | undefined) => Promise<boolean>

Dismiss the open modal overlay.

Returns

Type: Promise<boolean>

getTop() => Promise<HTMLIonModalElement | undefined>

Get the most recently opened modal overlay.

Returns

Type: Promise<HTMLIonModalElement | undefined>


Built with StencilJS