DevExtreme React - Limit the Text Length
To limit the text length, assign an integer number to the maxLength option. By default, the text length is unlimited.
jQuery
JavaScript
$(function() { $("#textAreaContainer").dxTextArea({ maxLength: 200 }); });
Angular
HTML
TypeScript
<dx-text-area [maxLength]="200"> </dx-text-area>
import { DxTextAreaModule } from "devextreme-angular"; // ... export class AppComponent { // ... } @NgModule({ imports: [ // ... DxTextAreaModule ], // ... })
See Also
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.