https://github.com/grabenhenrich/MMM-Space
MagicMirror Module - Add static space between modules
https://github.com/grabenhenrich/MMM-Space
Last synced: 7 months ago
JSON representation
MagicMirror Module - Add static space between modules
- Host: GitHub
- URL: https://github.com/grabenhenrich/MMM-Space
- Owner: grabenhenrich
- Created: 2019-08-15T17:11:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-15T21:13:59.000Z (almost 7 years ago)
- Last Synced: 2024-06-29T10:33:46.320Z (almost 2 years ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mmm - **MMM-Space**
README
# Module: MMM-Space
The `MMM-Space` module is a third party module for the MagicMirror universe.
This module displays a background-colored 'div' element to let you insert a static vertical space between other modules.
## Screenshot
Doesn't make sense as it usually displays nothing (only when you specify a background color which is meant to see what you get while tinkering with the MagicMirror overall layout).
## Using the module
To use this module, add it to the modules array in the `config/config.js` file:
````javascript
modules: [
{
module: "MMM-Space",
position: "top_left", // This can be any of the regions.
config: {
// The config property is optional.
// See 'Configuration options' for more information.
}
}
]
````
## Configuration options
The following properties can be configured:
| Option | Description
| ----------------- | -----------
| `verticalSpace` | Definition of the height of the static space, e.g. as pixels.
**Possible values:** `40px`, `100px`, ...
**Default value:** `40px`
| `backgroundColor` | Definition of the background color, usually left blank.
**Possible values:** HEX-coded RGB values, `"#FF0000"`
**Default value:** `"transparent"`
## Notifications
Doesn't make sense to exchange any information with the MagicMirror system, as this is a purely static HTML element.