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
Add comment
Grzegorz Bujański staff answered 3 years ago
Change html = true
to data-mdb-html = "true"
. That should be enough.
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