vue-confirm-dialog icon indicating copy to clipboard operation
vue-confirm-dialog copied to clipboard

Can I include html in the message when using the API? is that supported?

Open mauriciojsola opened this issue 4 years ago • 8 comments

Can I include html in the message when using the API? is that supported?

mauriciojsola avatar Sep 04 '20 00:09 mauriciojsola

No, that is not supported. But I can add this feature to the next release.

aslanon avatar Sep 04 '20 08:09 aslanon

That would be great. Thanks!

mauriciojsola avatar Sep 04 '20 13:09 mauriciojsola

@aslanon yes, please

podolskyi avatar Sep 13 '20 11:09 podolskyi

please add this feature. I want to use icon fonts that need HTML support.

nekooee avatar Mar 07 '21 20:03 nekooee

please add this feature. I want to use icon fonts that need HTML support.

https://www.npmjs.com/package/vue-lsi-util

LeoLobLogiciel avatar Mar 07 '21 20:03 LeoLobLogiciel

please add this feature. I want to use icon fonts that need HTML support.

https://www.npmjs.com/package/vue-lsi-util

I did not find any photos or demos of this package. What does it look like?

nekooee avatar Mar 07 '21 21:03 nekooee

Captura de Pantalla 2021-03-07 a la(s) 19 13 08

Here is an example. You CAN put HTML into the message.

LeoLobLogiciel avatar Mar 07 '21 22:03 LeoLobLogiciel

Not the most beautiful solution, but you can manipulate the DOM of confirm dialog with JS

After this.$confirm() you can add like this:

setTimeout(() => { document.querySelector('.vc-container .vc-text').innerHTML = '<strong>Hello</strong>'; }, 50);

mkarcsi avatar Aug 12 '21 08:08 mkarcsi