Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: How to show html content in a popover

smachesney free asked 3 years ago


I want to show a popover for some content written in html so I can have new lines, eg:

Copy: Ctrl C Paste: Ctrl P

I can only see how to put standard content in:

                    <i class="fas fa-question" style="color: white; padding-right: 10px;" data-mdb-toggle="popover"
                data-mdb-placement="left" title="Quick Shortcuts" data-mdb-trigger="hover" html=true
                data-mdb-content="<p>Copy: Ctrl C </p> <p>
                    Paste: Ctrl P </p>"
              ></i>

Thanks


Grzegorz Bujański staff answered 3 years ago


Change html = true to data-mdb-html = "true". That should be enough.


smachesney free commented 3 years ago

Thank you Gregorz



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: 3.2.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No