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: "avatar",
name:"avatar",
helpMessage: "Help information",
required: true,
label: "Avatar",
labelWidth: 140,
target: "https://docs.dhtmlx.com/suite/backend/upload",
}
]
});

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

The returned object of the Avatar control looks like:

{
"css": "",
"width": "content",
"height": "content",
"padding": undefined,
"label": "Avatar",
"labelWidth": 140,
"labelPosition": "top",
"hiddenLabel": false,
"helpMessage": "Help information",
"required": true,
"preMessage": "",
"successMessage": "",
"errorMessage": "",
"validation": undefined,
"readOnly": false,
"removeIcon": true,
"size": "medium",
"circle": false,
"alt": "",
"icon": "",
"placeholder": "",
"preview": "",
"accept": "",
"target": "https://docs.dhtmlx.com/suite/backend/upload",
"fieldName": "file",
"autosend": false,
"params": undefined,
"headerParams": undefined,
"updateFromResponse": true
}

You will find the description of these properties here.