Topic: How to show html content in a popover

smachesney free asked 2 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>"


Grzegorz Bujański staff answered 2 years ago

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

smachesney free commented 2 years ago

Thank you Gregorz

Please insert min. 20 characters.


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



Specification of the issue

  • User: 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