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: "checkbox",
label: "I agree",
name: "agree",
id: "agree",
value: "checkboxvalue"
}
]
});

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

The returned object of the Checkbox control looks like:

{
css:"",
errorMessage: "",
height: "content",
helpMessage: "",
hiddenLabel: false,
label: "",
labelPosition: "top",
labelWidth: "",
padding: 0,
preMessage: "",
required: false,
successMessage: "",
text: "I agree",
width: "content"
}

You will find the description of these properties here.

Change log:

added in v7.0