Text
A control for adding text to a form.
Related sample: Form. All controls
Adding Text
You can add a Text control during form initialization:
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 Text configuration properties.
Working with Text
You can manage a Text 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("text").getValue();
Methods
Check the full list of Text methods.
Events
Check the full list of Text events.