mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
15 lines
316 B
JavaScript
15 lines
316 B
JavaScript
module.exports = {
|
|
onInput: function () {
|
|
this.state = {
|
|
buttonSize: "small",
|
|
buttonLabel: "Initial Label",
|
|
};
|
|
},
|
|
|
|
update_buttonSize: function (newSize) {
|
|
var button1Component = this.getComponent("button1");
|
|
button1Component.setSize(newSize);
|
|
button1Component.update();
|
|
},
|
|
};
|