A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/form/api/toggle/toggle_getproperties_method/ below:

Website Navigation


JavaScript Form - getProperties Toggle Method

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4