mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
13 lines
241 B
JavaScript
13 lines
241 B
JavaScript
module.exports = {
|
|
onInput: function (input) {
|
|
this.state = {
|
|
type: input.type || "success",
|
|
body: input.message || input.renderBody,
|
|
};
|
|
},
|
|
|
|
setType: function (newType) {
|
|
this.setState("type", newType);
|
|
},
|
|
};
|