Giter Site home page Giter Site logo

Comments (3)

matte00 avatar matte00 commented on June 25, 2024

Is this project stopped? I confirm. UpdateLoadingHtml doesn't works

from please-wait.

ianhattendorf avatar ianhattendorf commented on June 25, 2024

I've forked the project and disabled transition support, which is the reason the pg-removing class wasn't being removed (for some reason the transition event isn't being fired). Updating the loading HTML is now working for me, with the caveat that there aren't any nice transitions.

https://github.com/ianhattendorf/please-wait

from please-wait.

Toilal avatar Toilal commented on June 25, 2024

I workaround this issue by performing direct DOM manipulation of HTML I want to change from initial one.

  setLoadingMessage(message: string) {
    let element = document.querySelector('.pg-loading-html .loading-message');
    if (element) {
      element.innerHTML = message;
    }
  }

  setLoadingError(error: boolean) {
    let loadingElement = document.body;
    if (loadingElement) {
      if (error) {
        loadingElement.classList.add('pg-loading-error');
      } else {
        loadingElement.classList.remove('pg-loading-error');
      }
    }
  }

from please-wait.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.