Skip to main content

getProperties()

returns an object with the available configuration attributes of the control

getProperties(): IBaseLayoutItem;

Returns:

An object with the available attributes of the control and their values.

Example

var form = new dhx.Form("form_container", {    rows: [        {            type: "spacer",            name: "spacer"        }    ]});
form.getItem("spacer").getProperties();
// -> the returned object{    height: "content",    padding: 0,    width: "content"}

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

width(string|number|"content") the width of a control
padding(string|number) sets padding between a cell and a border of the Spacer control
height(string|number|"content") the height of a control

Change log:

added in v7.0