Vue TextArea - Limit the Text Length

To limit the text length, assign an integer number to the maxLength property. By default, the text length is unlimited.

  • <template>
  • <DxTextArea :max-length="200"/>
  • </template>
  •  
  • <script>
  • import 'devextreme/dist/css/dx.common.css';
  • import 'devextreme/dist/css/dx.light.css';
  •  
  • import { DxTextArea } from 'devextreme-vue/text-area';
  •  
  • export default {
  • components: {
  • DxTextArea
  • }
  • }
  • </script>
See Also