Spacer
A control that takes up space in a form to align other controls.
Related sample: Form. All controls
Adding Spacer
You can add a Spacer control during form initialization:
const form = new dhx.Form("form_container", {
rows: [
{
type: "input",
label: "Name",
name: "name"
},
{
type: "spacer",
name: "spacer"
},
{
type: "input",
label: "Email",
name: "email"
}
]
});
Properties
View the full list of Spacer configuration properties.
Working with Spacer
You can manage a Spacer control with the methods and events of the object that the getItem() method returns.
For example, you can hide the control:
form.getItem("spacer").hide();
Methods
Check the full list of Spacer methods.