How to use the sweetalert2.showLoading function in sweetalert2

To help you get started, we’ve selected a few sweetalert2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gaplo917 / hkepc-ionic-reader / src / es6 / core / controller / WriteNewPostController.js View on Github external
const spinnerHtml = `
          <div>
              <div class="text-center">ε‚³ι€εˆ° HKEPC δΌΊζœε™¨δΈ­</div>
          </div>
        `

      swal({
        animation: false,
        html: spinnerHtml,
        allowOutsideClick: false,
        showCancelButton: false,
        showConfirmButton: false
      })

      swal.showLoading()

      // Post to the server
      this.apiService.dynamicRequest({
        method: 'POST',
        url: actionUrl,
        data: {
          subject: subject,
          message: replyMessage,
          typeid: _.get(post, 'category.id', undefined),
          handlekey: 'newthread',
          topicsubmit: true,
          ...hiddenFormInputs,
          ...imageFormData,
          ...deleteImageFormData
        },
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
github gaplo917 / hkepc-ionic-reader / src / es6 / core / controller / CMUsersController.js View on Github external
showLoading () {
    const spinnerHtml = `
          <div>
              <div class="text-center">ι©—θ¨Όη”¨ζˆΆθ³‡ζ–™δΈ­</div>
          </div>
        `

    swal({
      animation: false,
      html: spinnerHtml,
      allowOutsideClick: false,
      showCancelButton: false,
      showConfirmButton: false
    })

    swal.showLoading()
  }
github roemhildtg / can-arcgis / config / layerlist-actions / actions / getInfo.js View on Github external
export default function (event) {
    swal.showLoading();
    loadModules(['esri/request']).then(([Request]) => {
        new Request(event.item.layer.url, {
            query: {f: 'json'},
            responseType: 'json'
        }).then((response) => {
            swal({
                title: event.item.layer.title,
                text: response.data.description
            });
        });
    });
}