问题
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