Dialogs

Contents

This plugin gives you ability to access and customize the device native dialogs.

https://github.com/apache/cordova-plugin-dialogs

Ionic 弹出框Dialogs插件的安装(Installation)

ionic cordova plugin add cordova-plugin-dialogs npm install @ionic-native/dialogs

Ionic 弹出框Dialogs插件支持的平台(Supported Platforms)

  • Amazon Fire OS
  • Android
  • Browser
  • iOS
  • Windows

Ionic 弹出框Dialogs插件的用法(Usage)

import { Dialogs } from '@ionic-native/dialogs';

constructor(private dialogs: Dialogs) { }

...

this.dialogs.alert('Hello world')
  .then(() => console.log('Dialog dismissed'))
  .catch(e => console.log('Error displaying dialog', e));