Read the statement by Michael Teeuw here.
UpdateDom not working
-
@sharmmoh1983 all the Dom objects for all modules are created automatically when MagicMirror starts. This is not under your control, even for your own module. Your
getDom()routine is called when your module’s Dom object is initially created. This is why it is common to see a conditional ingetDom()routines that returns something like a simple string (e.g.: “Loading…”). Once your Dom object has been created, you can callupdateDom()at your discretion to make changes to whatever your module displays. If you don’t want your module to display anything, then don’t specify a location in the config for your module. If a location is specified, SOMETHING will appear there, even if you don’t have agetDom()routine.You can’t make changes to another module’s Dom object, but you can hide or show it. However, you can’t do that until that Dom object is initially created.
When all the Dom objects for all modules have been created at startup, MagicMirror dispatches the
DOM_OBJECTS_CREATEDnotification. By waiting for this notification, you can be sure that any module you attempt to hide will be hidden. -
@j-e-f-f It is kind of working now… I will test it thoroughly for two days and will revert in case of any issue
@j-e-f-f @Sean thank a lot for your prompt replies and efforts
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