|
created(args: any) {
let ganttObj = document.getElementById('ganttDefault').ej2_instances[0];
ganttObj.hideSpinner();
ganttObj.treeGrid.grid.hideSpinner();
createSpinner({
// Specify the target for the spinner to show
target: document.getElementById("container")
});
this.showSpinner();
}
dataBound (args: any) {
setTimeout(function () {
//this.hideSpinner();
hideSpinner(document.getElementById("container"));
}, 1000);
};
public showSpinner() {
// showSpinner() will make the spinner visible
showSpinner(document.getElementById("container"));
}
public hideSpinner() {
// hideSpinner() method used hide spinner
hideSpinner(document.getElementById("container"));
} |