Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AlertController: possibility to add <ion-icon> in message parameter #7874

Closed
chrisbenseler opened this issue Aug 25, 2016 · 16 comments
Closed

Comments

@chrisbenseler
Copy link

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.

@Ionitron Ionitron added the alert label Aug 25, 2016
@jgw96 jgw96 added v2 and removed alert labels Aug 25, 2016
@jtushar53
Copy link

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

@yurik94
Copy link

yurik94 commented Mar 15, 2017

👍 +1... this should be a really nice to have!

@jgw96
Copy link
Contributor

jgw96 commented Apr 14, 2017

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!

@jgw96 jgw96 closed this as completed Apr 14, 2017
@jgw96
Copy link
Contributor

jgw96 commented Apr 14, 2017

This issue was moved to driftyco/ionic-feature-requests#173

@MvRemmerden
Copy link

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?

@yurik94
Copy link

yurik94 commented Sep 13, 2017

Any news?

@mohamedsharaf
Copy link

+1

1 similar comment
@HenriqueJRech
Copy link

+1

@hiepxanh
Copy link
Contributor

hiepxanh commented Mar 18, 2018

can you please open this issue, sir ? your link not working @jgw96
image
I really need do something like this. Hope you can make some addition, I'll very appreciate that

@martenwallewein
Copy link

+1

2 similar comments
@Elioterio89
Copy link

+1

@LaloCastilla
Copy link

+1

@Vishwa17
Copy link

Vishwa17 commented Sep 7, 2018

Is it possible to apply icons in alert controller inside button ?

@victorhugorch
Copy link

+1

1 similar comment
@trmichaelmanlulu
Copy link

+1

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 11, 2018

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests