mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
20 lines
319 B
JavaScript
20 lines
319 B
JavaScript
module.exports = {
|
|
onInput: function (input) {
|
|
this.label = input.label;
|
|
},
|
|
|
|
onMount: function () {
|
|
this.name = "app-bar";
|
|
|
|
var el = this.el;
|
|
|
|
this.appendHtml = function (html) {
|
|
el.innerHTML += html;
|
|
};
|
|
},
|
|
|
|
emitTestEvent: function () {
|
|
this.emit("testEvent", "a", "b");
|
|
},
|
|
};
|