setProperties

allows changing available configuration attributes of the control dynamically

void setProperties(object properties);

Parameters

propertiesobjectan object with the available attributes of the control and their new values

Example

form.getItem("datepicker").setProperties({
    editable: true,
    labelWidth: "100px",
    required: true
});

Details

The method invokes the afterChangeProperties and beforeChangeProperties events.

It is possible to change values of the following configuration attributes of the DatePicker control:

Change log

added in v7.0

Back to top