Modal Message Box Confirm HTML in Title
See original GitHub issueThanks for adding the new beta modal plugin!! From what I am reading in the Docs, it is supported to pass the titleHtml
property as an option to the this.$bvModal.msgBoxConfirm()
service. However, it does not seem to be working to pass HTML to the titleHtml
property as an option.
Code Example
const title = '<span class="text-info">Warning, This Is An HTML Title</span>';
const message = 'Some message...;
const response = await this.$bvModal.msgBoxConfirm(message, {
titleHtml: title,
noFade: true,
});
Expected behavior
Expected to see the title parsed as HTML with the span
element and class. Actually seeing the HTML passed directly to the title, as seen in the attached screenshot.
Versions
Libraries:
- BootstrapVue: 2.0.0-rc.22
- Bootstrap: 4.3.1
- Vue: 2.6.10
Environment:
- Device: Mac
- OS: Mojave 10.14.5
- Browser: Chrome
- Version: 75.0.3770.80
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Changing the default title of confirm() in JavaScript?
I would like to do something like this: confirm("This is the content of the message box", "Modified title");
Read more >how to change "message from webpage" title in confirm pop ...
You can use styled Modal Dialog method to emulate them. Here is the DEMO code of the dialog: <!DOCTYPE html> <html> <head> <title>Your ......
Read more >How to add Title to modal dialog message - Oracle Communities
I am using APEX 5.1.2. i am using apex.confirm() JavaScript API to show a modal dialog when user tries to deactivate something by...
Read more >Window confirm() Method - W3Schools
The confirm() method displays a dialog box with a message, an OK button, and a Cancel button. The confirm() method returns true if...
Read more >Window.confirm() - Web APIs - MDN Web Docs
Dialog boxes are modal windows — they prevent the user from accessing the rest of the program's interface until the dialog box is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As an interim workaround you can pass an array of vNodes like so:
The message can also be passed as an array of vNode(s).
Thanks for finding this… we should be able to get this fixed for the next rc release.