|
import { createSpinner, setSpinner , showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
createSpinner({
target: document.getElementById('container');
});
showSpinner(document.getElementById('container'));
hideSpinner(document.getElementById('container'));
|
|
<!-- Essential JS 1 bootstrap theme -->
<link rel='nofollow' href="https://cdn.syncfusion.com/16.1.0.24/js/web/bootstrap-theme/ej.web.all.compatibility.min.css" rel="stylesheet" type="text/css"/>
<!-- Essential JS 2 material theme -->
<link rel='nofollow' href="https://cdn.syncfusion.com/ej2/styles/compatibility/material.css" rel="stylesheet" type="text/css"/>
|
|
// creating spinner and its target
ej.popups.createSpinner({
target: document.getElementById('container')
});
// showing the spinner
ej.popups.showSpinner(document.getElementById('container'));
setInterval(function(){
// closing the spinner
ej.popups.hideSpinner(document.getElementById('container'))
}, 5000);
|