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: "datepicker",
name: "datepicker",
label: "date",
labelWidth: "50px"
}
]
});
form.getItem("datepicker").getProperties();
The returned object of the DatePicker control looks like:
{
dateFormat: "%d/%m/%y",
disabledDates: undefined,
editable: false,
errorMessage: "",
height: "content",
helpMessage: "",
hiddenLabel: false,
icon: "",
label: "date",
labelPosition: "top",
labelWidth: "50px",
mark: undefined,
mode: "calendar",
padding: 0,
placeholder: "",
preMessage: "",
required: false,
successMessage: "",
thisMonthOnly: false,
timeFormat: 24,
timePicker: false,
validation: undefined,
valueFormat: "string",
weekNumbers: false,
weekStart: "sunday",
width: "content"
}
You will find the description of these properties here.
Change log:
added in v7.0