How to trigger "app-page-loader"
Hi,
I want to run "app-page-loader" manually.
Replies (3)
Hi
You can toggle the page loading using the below code:
// Enable
document.body.classList.add('page-loading');
document.body.setAttribute('data-kt-app-page-loading', "on");// Disable
document.body.classList.remove('page-loading');
document.body.removeAttribute('data-kt-app-page-loading');
Please add below HTML markup of the page loader inside the body element by previewing it with the layout builder.
<!--begin::loader-->
<div class="app-page-loader">
<span class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</span>
</div>
<!--end::Loader-->
Regards.
Thank you
Glad to help you out. If you need any help please let me know
Your Support Matters!
We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.