angular - Add class name into div in ionic 2 -


i using alert components need insert class name animated zoomin div near <div class="alert-wrapper"></div>

it's possible ?enter image description here

doalert() {       let alert = alert.create({         cssclass: 'animated zoomin',         title: 'new friend!',         message: 'your friend, obi wan kenobi, approved friend request!',         buttons: ['ok']       });       this.nav.present(alert);     } 

if want custom try create alert this:

let alertpopup = alert.create({ title: 'title', subtitle: 'message', cssclass: 'animated_zoomin', buttons: [{ text: 'btntype', cssclass: 'buttoncss' }] }); this.nav.present(alertpopup);  in app.core.scss or page scss, define cssclass this:  .buttoncss{ color:#e74c3c; /*any other style wish apply*/ }  .animated_zoomin{ color:#e74c3c; /*any other style wish apply*/ }  ----make sure page scss imported---- 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -