HTML
xxxxxxxxxx
1
<button
2
type="button"
3
class="btn btn-lg btn-danger"
4
data-mdb-ripple-init
5
title="Popover title"
6
id="example"
7
>
8
Click to toggle popover
9
</button>
CSS
1
1
JS
xxxxxxxxxx
1
const exampleTriggerEl = document.getElementById('example')
2
const popover = new mdb.Popover(exampleTriggerEl, {content: 'JS content'})
3
Console errors: 0