Es5 getting started in EJ2 JavaScript Spinner control

8 May 20232 minutes to read

Initialize the Spinner using createSpinner method and show/hide the spinner using showSpinner and hideSpinner methods accordingly. Set the target to the spinner to render it based on specific target.

    target: document.getElementById('container')
  • Show and hide this spinner by using showSpinner and hideSpinner methods for loading in your page.

Create the Spinner globally

The Spinner can be render globally in a page using public exported functions of the ej.popups.

//createSpinner() method is used to create spinner


  // Specify the target for the spinner to show

  target: document.getElementById('container')


//showSpinner() will make the spinner visible


setInterval(function () {

  //hideSpinner() method used hide spinner 


}, 100000);
<!DOCTYPE html><html lang="en"><head>
    <title>EJ2 Spinner</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="TypeScript NumericTextBox Component">
    <meta name="author" content="Syncfusion">
    <link href="" rel="stylesheet">
    <link href="" rel="stylesheet">
<script src="" type="text/javascript"></script>
<script src="" type ="text/javascript"></script>
    <div id="container">

var ele = document.getElementById('container');
if(ele) { = "visible";
<script src="index.js" type="text/javascript"></script>