mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-04-25 23:17:10 -04:00
First Nunchucks Implementation.
This commit is contained in:
parent
5fde095a6f
commit
e01794a07f
10 changed files with 7178 additions and 19 deletions
|
@ -14,10 +14,11 @@ Module.register("helloworld",{
|
|||
text: "Hello World!"
|
||||
},
|
||||
|
||||
// Override dom generator.
|
||||
getDom: function() {
|
||||
var wrapper = document.createElement("div");
|
||||
wrapper.innerHTML = this.config.text;
|
||||
return wrapper;
|
||||
getTemplate: function () {
|
||||
return "helloworld.html"
|
||||
},
|
||||
|
||||
getTemplateData: function () {
|
||||
return this.config
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue