Skip to main content

setProperties()

allows changing available configuration properties of the Container control dynamically

setProperties(propertyConfig: IBaseLayoutItem): void;

Parameters:

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

Example

form.getItem("container").setProperties({    height: "200",    width: "800",    padding: "10"});

The method invokes the afterChangeProperties and beforeChangeProperties events.

It is possible to change values of the following properties of the Container control:

  • width - string, number, "content" - the width of a control
  • height - string, number, "content" - the height of a control
  • padding - string, number - sets padding between a cell and a border of a control

Change log:

added in v7.2