Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

data toggle modal and tooltip

// tooltip with modal
// We can add a attribue at the data-toggle modal div like below
// <div data-toggle="modal" data-bs-tooltip="tooltip" placement="top" ....></div>

var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-tooltip="tooltip"]'))
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
	return new bootstrap.Tooltip(tooltipTriggerEl)
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #data #toggle #modal #tooltip
ADD COMMENT
Topic
Name
2+7 =