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: "input",
name: "input",
label: "Name",
icon: "dxi dxi-magnify",
placeholder: "John Doe"
}
]
});
form.getItem("input").getProperties();
The returned object of the Input control looks like:
{
autocomplete: false,
errorMessage: "",
height: "content",
helpMessage: "",
hiddenLabel: false,
icon: "dxi dxi-magnify",
inputType: "text",
label: "Name",
labelPosition: "top",
labelWidth: "",
max: undefined,
maxlength: undefined,
min: undefined,
minlength: undefined,
padding: 0,
placeholder: "John Doe",
preMessage: "",
readOnly: false,
required: false,
successMessage: "",
validation: undefined,
width: "content"
}
You will find the description of these properties here.
Change log:
added in v7.0