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