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

Method setData

js/module.js:212–221  ·  view source on GitHub ↗

* Set the module data. * @param {object} data The module data

(data)

Source from the content-addressed store, hash-verified

210 * @param {object} data The module data
211 */
212 setData (data) {
213 this.data = data;
214 this.name = data.name;
215 this.identifier = data.identifier;
216 this.hidden = false;
217 this.hasAnimateIn = false;
218 this.hasAnimateOut = false;
219
220 this.setConfig(data.config, data.configDeepMerge);
221 }
222
223 /**
224 * Set the module config and combine it with the module defaults.

Callers 2

bootstrapModuleFunction · 0.80
module_spec.jsFile · 0.80

Calls 1

setConfigMethod · 0.95

Tested by

no test coverage detected