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