我使用Alert组件我需要将animated zoomIn
之类的类名插入<div class="alert-wrapper"></div>
附近的div中
doAlert() {
let alert = Alert.create({
cssClass: 'animated zoomIn',
title: 'New Friend!',
message: 'Your friend, Obi wan Kenobi, just approved your friend request!',
buttons: ['Ok']
});
this.nav.present(alert);
}
答案 0 :(得分:0)
如果你想要一些自定义,那么试试这个 只需创建如下警告:
let alertPopup = Alert.create({
title: 'title',
subTitle: 'message',
cssClass: 'animated_zoomIn',
buttons: [{
text: 'btnType',
cssClass: 'buttoncss'
}]
});
this.nav.present(alertPopup);
In your app.core.scss or your page scss, define your cssClass like this:
.buttoncss{
color:#e74c3c;
/*Any other style you wish to apply*/
}
.animated_zoomIn{
color:#e74c3c;
/*Any other style you wish to apply*/
}
----Make sure your page scss is imported----