Angular 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.

HTML
TypeScript
  • <dx-text-area
  • [maxLength]="200">
  • </dx-text-area>
  • import { DxTextAreaModule } from "devextreme-angular";
  • // ...
  • export class AppComponent {
  • // ...
  • }
  • @NgModule({
  • imports: [
  • // ...
  • DxTextAreaModule
  • ],
  • // ...
  • })
See Also