Adding image to alert controller

hi guys, i would like to know more about alert controller, do you think is it allowed to embed image on it? If so, how? any could teach me thanks. :slight_smile:

Hello,

It is possible to add an image to an alert. You can pass html tags to the message param and ionic will parse it as html. Styling is a bit harder tho - you have to do it inline in order for it to be working.

const alert = await this.alert.create({
                    header: HEADER,
                    message: `<img src="${mapUrl}" alt="g-maps" style="border-radius: 2px">`,
                    buttons: [
                        {
                            text: CANCEL,
                            role: 'cancel',
                        },
                        {
                            text: CONFIRM,
                            handler: ,
                        },
                    ],
                });

                await alert.present();