TextBox

A single-line text box widget.

Type: Object

The dxTextBox widget enables a user to enter a single line of text. The current widget value is specified by the value option.

Declare an observable variable and pass it to the value option to update the variable each time the widget value changes.

JavaScript
var text = ko.observable(0);

To create the dxTextBox widget, add a div element with dxTextBox Knockout binding within the body of the required view.

HTML
<div data-bind="dxTextBox:{value:text}"></div>

Refer to the Add a widget documentation section to learn how to create widgets in detail.

Show Example:
jQuery

Configuration

An object defining configuration options for the dxTextBox widget.

Methods

This section describes the members used to manipulate the widget.