Read the statement by Michael Teeuw here.
updateDom animationSpeed
-
Hello - I’m developing my first module and when I want to update the dom, I call the following methods:
this.updateDom(animationSpeed); this.scheduleUpdate();If I set the
animationSpeedto something like 3 seconds, the text I added to the dom fades to nothing, which is not what I want. I want the text to stay persisted on the screen. If I set it to 0, the changes don’t show up at all. If I set it to a really really large value, the text does stay, but it seems to overload my processor’s CPU. How do I use theupdateDommethod to persist text on the screen? Thanks so much.-Russ
-
@russifer remove animation then?
-
@broberg I did remove the animation speed value, so instead didn’t pass anything into updateDom, but that causes the updates not to occur at all. The new text never appears on screen.
-
@russifer you might want to post or link your whole module, that makes debugging for others easier to find your mistake
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login