xxxxxxxxxx
1
<i data-mdb-toggle="tooltip" id="warningIcon"
2
title="Warning"
3
class="fa fa-exclamation-circle text-warning fa-lg">
4
</i>
1
1
xxxxxxxxxx
1
const warningIcon = document.getElementById('warningIcon')
2
const tooltip = new mdb.Tooltip(warningIcon, {
3
title: 'generated warning message'
4
});
5
tooltip.show()
Console errors: 0