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: "textarea",
name:"textarea",
label: "textarea",
labelWidth: "70px",
value: "Some nice text",
width:400
}
]
});

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

The returned object of the Textarea control looks like:

{
errorMessage: "",
height: "content",
helpMessage: "",
hiddenLabel: false,
label: "textarea",
labelPosition: "top",
labelWidth: "70px",
maxlength: undefined,
minlength: undefined,
padding: 0,
placeholder: "",
preMessage: "",
readOnly: false,
required: false,
successMessage: "",
validation: undefined,
width: 400
}

You will find the description of these properties here.

Change log:

added in v7.0