MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Hide a module by default

    Scheduled Pinned Locked Moved Development
    11 Posts 3 Posters 2.5k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @rudiau
      last edited by sdetweil

      @rudiau ok, full-stop? you mean semi-colon?

      not required in js unless everything is on the same line

      as for hidden, I am an idiot, see the doc

      Screenshot_20221029-081846_Chrome.jpg

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      BKeyportB 1 Reply Last reply Reply Quote 0
      • R Offline
        rudiau
        last edited by

        hiddenOnStartup
        Perfect.
        Thank you Sam.

        1 Reply Last reply Reply Quote 0
        • BKeyportB Offline
          BKeyport Module Developer @sdetweil
          last edited by

          @sdetweil “fullstop” is the period. In your original, it looks like there was a comma. :)

          The "E" in "Javascript" stands for "Easy"

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @BKeyport
            last edited by

            @BKeyport ok, I don’t see where you are referencing

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer @rudiau
              last edited by

              @sdetweil:

              @rudiau said in Hide a module by default:

              > (closing bracket query)
              > notificationReceived: function(notification, payload, source){
              >    // this comes before the first call to getDom()
              >    if(notification === "ALL_MODULES_STARTED")
              >       this.hidden=true;
              > }.
              

              Looks it was all his actually. The last line of that code has the fullstop after a closing curly bracket.

              The "E" in "Javascript" stands for "Easy"

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @BKeyport
                last edited by

                @BKeyport ah, I see the question… never heard a period called that

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 1 / 2
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy