Flutter教程

ion-modal-controller

概要(CONTENTS)

Ionic4项目中我们可以使用Ionic4模态框组件ion-modal-controller对项目进行布局。

ion-modal-controller官方文档地址:https://ionicframework.com/docs/api/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.

ion-modal-controller 内置方法(Methods)

create

Description

Create a modal overlay with modal options.

Signature create(options: ModalOptions) => Promise

dismiss

Description

Dismiss the open modal overlay.

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

getTop

Description

Get the most recently opened modal overlay.

Signature getTop() => Promise