Input
A single-line field that allows users to enter text, a password, or a number.
Related sample: Form. All controls
Related sample: Form. Inputs
Adding Input
You can add an Input control during form initialization:
const form = new dhx.Form("form_container", {
rows: [
{
type: "input",
name: "input",
label: "Name",
icon: "dxi dxi-magnify",
placeholder: "John Doe"
}
]
});
Properties
View the full list of Input configuration properties.
Working with Input
You can manage an Input control with the methods and events of the object that the getItem() method returns.
For example, you can get the value of the control:
const value = form.getItem("input").getValue();
Methods
Check the full list of Input methods.