• 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.

Is there a way to programmatically change the position of a module

Scheduled Pinned Locked Moved Development
2 Posts 1 Posters 916 Views 1 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.
  • V Offline
    Veldrovive Module Developer
    last edited by Apr 16, 2018, 4:59 PM

    I’m writing a module to help with scene changes and the main issue I’m having is that I can’t find a way to change the positions of modules after the mirror is loaded. Looking through the page, I was thinking that it would be possible to get a reference to the html element and shift its position manually, but I wanted to see if there was a proper way to do it before trying out that method.

    1 Reply Last reply Reply Quote 0
    • V Offline
      Veldrovive Module Developer
      last edited by Apr 17, 2018, 1:03 AM

      I did it manually using references the modules and containers. It worked a lot better than I assumed it would as well since references to the modules seem to stay intact so hiding them still works. I will post the full module when I’m done if in case anybody wants to see how I hacked it together.

      P.S. If there is a more official way, I would still like to know what it is.

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