A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/form/text/ below:

Website Navigation


JavaScript Form - Text | DHTMLX Suite 9 Docs

Text

A control for adding some text.

Related sample: Form. All controls

Adding Text​

You can easily add a Text control during initialization of a form:

const form = new dhx.Form("form_container", {
rows: [
{
type: "text",
name: "text",
label: "text",
value: "I am a nice text"
}
]
});
Properties​

View the full list of configuration properties of the Text control.

Working with Text​

You can manipulate a Text control by using methods or events of the object returned by the getItem() method.

For example, you can get the value of the control:

const value = form.getItem("text").getValue();
Methods​

Check the full list of methods of the Text control.

Events​

Check the full list of events of the Text control.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4