Skip to content

popover html replace title and content #12754

@acornejo

Description

@acornejo

(This is not a bug report, but a feature request)

Currently bs3 provides options for setting the title and the content of the popovers, together with an html boolean to determine if the content and title should be escaped as text, or inserted as html.

I propose to allow html to be a domnode or a string. If that is the case, the content and title options are ignored, and the domnode or string are used to populate the interior of the popover.

I think this feature would be immensely useful and simplify a lot of use-cases, since a lot of people out there have worked out all sorts of hacks to customize the contents of popovers (for instance, things like placing a close button on the title of the popover has been subject to numerous stack overflow questions and blog posts).

PS: I can create a pull-request implementing this feature, but I don't want to waste the time if this won't be included in bootstrap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions