• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Dynamically Moving Modules

Scheduled Pinned Locked Moved Development
7 Posts 5 Posters 3.5k Views 4 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.
  • R Offline
    reporter500
    last edited by Jul 29, 2017, 5:37 AM

    I’m trying to dynamically move the modules on the screen, but I’m don’t know where to start. I’m able to identify all the modules loaded and hide and show them, but I’m not sure how to move them. I tried updating the module.config.position and the module.data.position but it did nothing. Can anyone shed some light on this for me.

    S 1 Reply Last reply Jul 29, 2017, 1:49 PM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @reporter500
      last edited by Jul 29, 2017, 1:49 PM

      @reporter500 this isn’t a supported feature

      Please create a github issue if you need help, so I can keep track

      1 Reply Last reply Reply Quote 1
      • R Offline
        reporter500
        last edited by Jul 29, 2017, 3:16 PM

        I knew it wasn’t supported, but I wanted to see if anyone was doing any custom development that might have solve this.

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by A Former User Jul 30, 2017, 11:36 AM Jul 30, 2017, 10:42 AM

          It needs some trick.

          1. Get node of region container.
          2. Draw your dom and insert into region container node in getDom(). Your dom’s root node should have classname ‘module’.
          3. Set region container display style to block.

          Good luck!

          Ps. I use this trick in currently developing module. It works well.

          C R 2 Replies Last reply Jul 30, 2017, 8:54 PM Reply Quote 0
          • C Offline
            cowboysdude Module Developer @Guest
            last edited by Jul 30, 2017, 8:54 PM

            @Sean said in Dynamically Moving Modules:

            Ps. I use this trick in currently developing module. It works well.

            OH do tell LOL

            1 Reply Last reply Reply Quote 0
            • R Offline
              reporter500 @Guest
              last edited by Aug 10, 2017, 11:32 AM

              @Sean Perfect! Thank you.

              1 Reply Last reply Reply Quote 0
              • S Offline
                shbatm Module Developer
                last edited by shbatm Aug 10, 2017, 12:28 PM Aug 10, 2017, 12:26 PM

                This version of MMM-Carousel will allow you to set different locations for a module for different slides:

                [card:shbatm/MMM-Carousel]

                See the very bottom of the README for more information

                If you’re interested in incorporating this into your own module, the relevant parts of the code are here and here

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • 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