Modal window Module for MagicMirror²
- An installation of MagicMirror²
- OPTIONAL: Voice Control
- Clone this repo into
~/MagicMirror/modules
directory. - Configure your
~/MagicMirror/config/config.js
:
{
module: 'MMM-Modal',
position: 'fullscreen_above',
config: {
// all your config options, which are different than their default values
}
}
Option | Default | Description |
---|---|---|
timer |
15000 |
Either false (buttons/voice control) or milliseconds how long a modal should remain open. |
touch |
false |
Flag to enable touchable buttons fot closing the modal or handle dialogs. |
showSenderName |
true |
Flag to display the name of the sender module or not. |
This module supports voice control by MMM-voice. In order to use this feature, it's required to install the voice module. There are no extra config options for voice control needed.
The voice control mode for this module is MODAL
- OPEN HELP -> Shows the information from the readme here with mode and all commands.
- CLOSE HELP -> Hides the help information.
- CLOSE MODAL -> Closes the open modal.
- CANCEL MODAL -> Cancel the dialog.
- CONFIRM MODAL -> Confirm the dialog.
List of all modules depending on MMM-Modal in the Wiki.
If you want to integrate MMM-Modal into your own modules, then please check out the developer guide
npm run lint
- Lints JS and CSS files.npm run docs
- Generates documentation.