A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Dynamically Moving Modules
-
@reporter500 this isn’t a supported feature
-
I knew it wasn’t supported, but I wanted to see if anyone was doing any custom development that might have solve this.
-
It needs some trick.
- Get node of region container.
- Draw your dom and insert into region container node in
getDom()
. Your dom’s root node should have classname ‘module’. - Set region container display style to
block
.
Good luck!
Ps. I use this trick in currently developing module. It works well.
-
@Sean said in Dynamically Moving Modules:
Ps. I use this trick in currently developing module. It works well.
OH do tell LOL
-
@Sean Perfect! Thank you.
-
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