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: "simpleVault",
name:"simplevault",
helpMessage: "Help information",
required: true,
label: "Simple Vault",
labelWidth: 140,
target: "https://docs.dhtmlx.com/suite/backend/upload",
}
]
});
form.getItem("simplevault").getProperties();
The returned object of the SimpleVault control looks like:
{
"width": "content",
"height": "content",
"css": "",
"required": true,
"label": "Simple Vault",
"labelWidth": 140,
"labelPosition": "top",
"hiddenLabel": false,
"helpMessage": "Help information",
"preMessage": "",
"successMessage": "",
"errorMessage": "",
"target": "https://docs.dhtmlx.com/suite/backend/upload",
"fieldName": "file",
"singleRequest": false,
"updateFromResponse": true,
"autosend": false,
"accept": "",
"params": undefined,
"headerParams": undefined,
"padding": undefined,
"validation": undefined
}
You will find the description of these properties here.
Change log:
added in v7.0