Search docs/

ion-modal-controller

Contents

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.

Methods

create

Description

Create a modal overlay with modal options.

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

dismiss

Description

Dismiss the open modal overlay.

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

getTop

Description

Get the most recently opened modal overlay.

SignaturegetTop() => Promise<HTMLIonModalElement | undefined>