mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
17 lines
303 B
JavaScript
17 lines
303 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;
|
|
},
|
|
};
|