When createing an AlertController object:
let alert = this.alertController.create({
title: "My title",
message: 'Some message'
});
it would be great if we could add an ion-icon in the message, like this:
let alert = this.alertCtrl.create({
title: this.translate.instant("tos.title"),
message: '<ion-icon name="add-circle"></ion-icon>some text'
});
the ion-icon is removed (not rendered). First I thought the framework was removing html markup, but html standard tags (h1, h2, p, etc...) are not.
Also Toast can have icons, maybe some thing like
let toast = this.toastCtrl.create({
message:'message',
icon : "information"
});
or may be the approach like OP
馃憤 +1... this should be a really nice to have!
Hello everyone! Thanks for the feature request. I'm going to move this issue over to our internal list of feature requests for evaluation. We are continually prioritizing all requests that we receive with outstanding issues. We are extremely grateful for your feedback, but it may not always be our next priority. I'll copy the issue back to this repository when we have begun implementation. Thanks!
This issue was moved to driftyco/ionic-feature-requests#173
The place you moved it to is not available anymore. Any chance to see the progress or get some indication of the very rough expected timeline?
Any news?
+1
+1
can you please open this issue, sir ? your link not working @jgw96
I really need do something like this. Hope you can make some addition, I'll very appreciate that
+1
+1
+1
Is it possible to apply icons in alert controller inside button ?
+1
+1
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Most helpful comment
The place you moved it to is not available anymore. Any chance to see the progress or get some indication of the very rough expected timeline?