Skip to content

Modal Message Box Confirm HTML in Title #3491

@joelhickok

Description

@joelhickok

Thanks 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.

image

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions