getProperties()
returns an object with the available configuration attributes of the control
getProperties(): object;
Returns:
An object with the available attributes of the control and their values.
Example
const form = new dhx.Form("form_container", {
rows: [
{
type: "fieldset",
label: "Section name",
rows: [
{
type: "input",
name: "name",
required: true,
label: "Name",
placeholder: "Type text",
},
{
type: "input",
name: "surname",
required: true,
label: "Surname",
placeholder: "Type text",
},
// more controls
]
}
]
});
form.getItem("fieldset").getProperties();
The returned object of the Fieldset control looks like:
{
"align": undefined
"css": "",
"height": "content",
"label": "Personal info",
"labelAlignment": "left",
"padding": undefined,
"width": "content"
}
You will find the description of these properties here.