Create custom Popup in Ionic App

二次信任 提交于 2021-02-08 10:11:02

问题


I try to create custom Popup in my Ionic App, I try to modify using Ionic CSS in to full fill my requirement but don't get success. Please help me or suggest me if any third party CSS available which i can edit and full fill my requirement.

Proposed Design


回答1:


Have a look at ionic ModalController it can be used to create custom popup along with custom template rather customizing Alert Controller. All you have to do is create a normal ionic page using ionic generate page <pageName> then using ModalController inflate the template and present the pop up to user. Read this thread to create full flexed pop up that match up your requirement. This is how you can add animation to models.

constructor(public modalCtrl: ModalController) {
}

let profileModal = this.modalCtrl.create(Profile);
profileModal.present();


来源:https://stackoverflow.com/questions/43738518/create-custom-popup-in-ionic-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!