Skip to main content

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: "select",
name: "select",
label: "select",
labelWidth: "50px",
width:"200px",
options: [
{
value: "1",
content: "1",
disabled: true
},
{
value: "2",
content: "2"
}
]
}
]
});

form.getItem("select").getProperties();

The returned object of the Select control looks like:

{
errorMessage: "",
height: "content",
helpMessage: "",
hiddenLabel: false,
icon: "",
label: "select",
labelPosition: "top",
labelWidth: "50px",
padding: 0,
preMessage: "",
successMessage: "",
validation: undefined,
width: "200px"
}

You will find the description of these properties here.

Change log:

added in v7.0