Dialogs
This plugin gives you ability to access and customize the device native dialogs.
Requires Cordova plugin: cordova-plugin-dialogs
. For more info, please see the Dialogs plugin docs.
联系我们?
If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.
Ionic 弹出框Dialogs插件的安装(Installation)
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
Ionic 弹出框Dialogs插件支持的平台(Supported Platforms)
- Amazon Fire OS
- Android
- Browser
- iOS
- Windows
Ionic 弹出框Dialogs插件的用法(Usage)
import { Dialogs } from '@ionic-native/dialogs/ngx';
constructor(private dialogs: Dialogs) { }
...
this.dialogs.alert('Hello world')
.then(() => console.log('Dialog dismissed'))
.catch(e => console.log('Error displaying dialog', e));