MCPcopy Index your code
hub / github.com/MagicMirrorOrg/MagicMirror / show

Method show

js/module.js:398–417  ·  view source on GitHub ↗

* Show this module. * @param {number} speed The speed of the show animation. * @param {() => void} callback Called when the animation is done. * @param {object} [options] Optional settings for the show method.

(speed, callback, options)

Source from the content-addressed store, hash-verified

396 * @param {object} [options] Optional settings for the show method.
397 */
398 show (speed, callback, options) {
399 let usedCallback = callback || function () {};
400 let usedOptions = options;
401
402 if (typeof callback === "object") {
403 Log.error("Parameter mismatch in module.show: callback is not an optional parameter!");
404 usedOptions = callback;
405 usedCallback = function () {};
406 }
407
408 MM.showModule(
409 this,
410 speed,
411 () => {
412 this.resume();
413 usedCallback();
414 },
415 usedOptions
416 );
417 }
418}
419
420globalThis.Module = Module;

Callers 4

createWindowFunction · 0.80
showNotificationFunction · 0.80
showAlertFunction · 0.80

Calls 1

resumeMethod · 0.95

Tested by

no test coverage detected