getProperties

returns an object with the available configuration attributes of the control

object getProperties();

Returns

objectan object with the available attributes of the control and their values

Example

var form = new dhx.Form("form_container", {
    rows: [
        {
            type: "datepicker",
            name: "datepicker",
            label: "date",
            labelWidth: "50px"
        }
    ]
});
 
form.getItem("datepicker").getProperties();
 
// -> the returned object:
{
    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"
}

Details

The returned object of the DatePicker control can contain the following configuration attributes:

Change log

added in v7.0

Back to top