Getting Started

5 Jul 20184 minutes to read

This section explains briefly about how to create a WaitingPopup in your application with JavaScript.
Essential JavaScript WaitingPopup provides support to display a WaitingPopup within your webpage. From the following guidelines, you can learn how to create a WaitingPopup in a real-time login page authentication scenario.

The following screenshot illustrates the functionality of a WaitingPopup with login page scenario.

You can give the Username and Password in the login page. When you click the Login button, you get the WaitingPopup. After loading, the alert box pops up with the message “Signed in successfully”.

Create Username and Password

  • To create Syncfusion Aurelia application refer Aurelia Getting Started documentation.
  • Create WaitingPopup folder inside src/samples location.
  • Create WaitingPopup.html file inside src/samples/WaitingPopup folder and use the below code for rendering RichTextEditor component
  • HTML
  • <template>
      <require from="./default-functionalities.css"></require>
        <div id="targetElement">
          <table class="loginTable">
              <td><input type="text"/></td>
              <td><input type="password"/></td>
              <td><button id="btnOpen" class="e-btn" ej-button="e-text:Login; size: medium, type: button, height: 30, width: 150"
          <div id="popup" class="waiting" ej-waiting-popup></div>

    Initialize the WaitingPopup in script

    • Create WaitingPopup.js file inside src/samples/WaitingPopup folder with below code snippet.
  • JS
  • export class DefaultFunctionalities { }
  • CSS
  • <style type="text/css" class="cssStyles">
       #targetElement {
           width: 500px;
           height: 200px;
           margin: 50px;
           border: 1px solid #dbdcdb;
       .loginTable {
           margin: 60px auto;
       #popup_WaitingPopup .e-image {
           display: block;
           height: 70px;

    The following screenshot displays a User login.

    Add WaitingPopup Widget

    To render the ejWaitingPopup using aurelia directive, we need to inject the ej aurelia directive with modules.

    In a real-time login page scenario, when you click the Login button, the WaitingPopup is displayed.

  • JS
  • export class DefaultFunctionalities { 
     constructor() {}
     onOpen(args) {
                    showOnInit: true,
                    target: "#targetElement"
                function success() {
                    let obj = $("#popup").data("ejWaitingPopup");
                    alert("Signed in successfully");
    			setTimeout(success, 5000);

    The following screenshot shows the output of the above code example.