update docs about components
This commit is contained in:
parent
c16350de5a
commit
4184da27c8
6 changed files with 270 additions and 242 deletions
|
|
@ -127,7 +127,7 @@ For example, you might only be interested in running a redraw if a user presses
|
|||
|
||||
```javascript
|
||||
m("input", {onkeydown: function(e) {
|
||||
if (e.keyCode == 13) ctrl.save() //do things and re-render only if the `enter` key was pressed
|
||||
if (e.keyCode == 13) vm.save() //do things and re-render only if the `enter` key was pressed
|
||||
else m.redraw.strategy("none") //otherwise, ignore
|
||||
}})
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue