Skip to content
Permalink
Browse files

Update README.md: fix events handling example

  • Loading branch information...
IlyaKhD committed Jul 3, 2019
1 parent 80bb339 commit f800261cd239e7ae16030969f31d826ff7023898
Showing with 7 additions and 5 deletions.
  1. +7 −5 README.md
@@ -241,16 +241,18 @@ For example, you can specify the [ScrollView](https://js.devexpress.com/Document
You can subscribe to DevExtreme Component events using the Vue's [`v-on` directive](https://vuejs.org/v2/guide/events.html) (or `@` shorthand)

```html
<dx-text-box v-model="text" @focusIn="handleFocusIn" />
<dx-text-box v-model="text" @focus-in="handleFocusIn" />
```
```js
data: function() {
return {
text: "text",
handleFocusIn: () => {
this.text = 'focused!';
}
text: 'text'
};
},
methods: {
handleFocusIn() {
this.text = 'focused!';
}
}
```

0 comments on commit f800261

Please sign in to comment.
You can’t perform that action at this time.