$(document).ready(function () {
// Init Metronic core components
KTComponents.init();
});
setTimeout(function () {
KTComponents.init();
}, 200);
assets/js/scripts.bundle.js
should handle the core component initialization out of the box.data-bs-toggle="tooltip"
attribute as per the official docs here.KTComponents.init()
.KTComponents.init()
is called then it should work as expected.// On document ready
KTUtil.onDOMContentLoaded(function() {
KTComponents.init()
});
setTimeout
with a delay of 200 milliseconds before re-initializing the components seems to work.document.addEventListener('livewire:load', function () {
// Re-initialize the components
KTComponents.init();
});
Livewire.hook("message.processed", function () {]);