mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
16 lines
337 B
JavaScript
16 lines
337 B
JavaScript
module.exports = {
|
|
onInput: function(input) {
|
|
this.state = {
|
|
size: input.size || 'normal',
|
|
label: input.label || '(no label)'
|
|
};
|
|
},
|
|
|
|
setSize: function(newSize) {
|
|
this.state.size = newSize;
|
|
},
|
|
|
|
setLabel: function(newLabel) {
|
|
this.state.label = newLabel;
|
|
}
|
|
}; |