Skip to main content

setProperties()

allows changing available configuration attributes of the control dynamically

setProperties(properties: object): void;

Parameters:

  • properties: object - an object with the available attributes of the control and their new values

Example

form.getItem("fieldset").setProperties({
label: "Personal info",
labelAlignment: "left"
});
info

The method invokes the afterChangeProperties and beforeChangeProperties events.

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

{
css: string,
width: string | number | "content",
height: string | number | "content",
padding: string | number,

label: string,
labelAlignment: "left" | "right" | "center",
align: "start" | "center" | "end" | "between" | "around" | "evenly"
}

You will find the description of these properties here.