Skip to main content

getProperties()

returns an object with the available configuration attributes of the control

getProperties(): object;

Returns:

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

Example

const form = new dhx.Form("form_container", {
rows: [
{
type: "toggle",
// renders an icon in the enabled state
icon: "dxi dxi-eye",
// renders an icon in the disabled state
offIcon: "dxi dxi-eye-off"
},
]
});

form.getItem("toggle").getProperties();

The returned object of the Toggle control looks like:

{
css: "",
width: "content",
height: "content",
padding: "",
full: false,
text: "Visible",
icon: "dxi dxi-eye",
offText: "Invisible",
offIcon: "dxi dxi-eye-off",
value: undefined
}

You will find the description of these properties here.