-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.vue
34 lines (32 loc) · 996 Bytes
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<template>
<DxTextArea
label="Country"
:value="longText"
:min-height="50"
:max-height="300"
:auto-resize-enabled="true"
:max-length="500"
value-change-event="keyup"
@value-changed="onValueChanged"
/>
</template>
<script>
import 'devextreme/dist/css/dx.light.css';
import { DxTextArea } from 'devextreme-vue/text-area';
import notify from "devextreme/ui/notify";
export default {
components: {
DxTextArea
},
data() {
return {
longText: "Japan is a sovereign island nation in East Asia. Located in the Pacific Ocean, it lies off the eastern coast of the Asian mainland and stretches from the Sea of Okhotsk in the north to the East China Sea and China in the southwest. The Greater Tokyo Area is the most populous metropolitan area in the world."
};
},
methods: {
onValueChanged() {
notify("The value has been changed");
}
}
}
</script>