TextArea

The TextArea is a widget that enables a user to enter and edit a multi-line text.

Included in: dx.mobile.js, dx.web.js, dx.viz-web.js, dx.all.js
Module: ui/text_area
Export: default
TextArea interactive configuration
Copy Code
Copy to Codepen
$("#textarea").dxTextArea({
});

You can create the widget using one of the following approaches.

  • jQuery

    HTML
    <div id="textArea"></div>
    JavaScript
    $(function() {
        $("#textArea").dxTextArea({
            placeholder: "Type a text here..."
        });
    });
  • AngularJS

    HTML
    <div dx-text-area="{
        placeholder: 'Type a text here...'
    }"></div>
  • Knockout

    HTML
    <div data-bind="dxTextArea: {
        placeholder: 'Type a text here...'
    }"></div>
  • ASP.NET MVC Wrappers

    @(Html.DevExtreme().TextArea()
        .ID("textArea")
        .Placeholder("Type a text here...")
    )

Note that DevExtreme widgets require you to link the jQuery library to your application. If you use the Knockout or AngularJS approach, the Knockout or AngularJS library is also required. For detailed information on linking these libraries to your project, refer to the topics in the Installation section.

View Demo

See Also
Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the dxTextArea widget.

Methods

This section describes members used to manipulate the widget.

Events

This section describes events fired by this widget.