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/select/select_getproperties_method/ below:

Website Navigation


JavaScript Form - getProperties Select 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: "select",
name: "select",
label: "select",
labelWidth: "50px",
width:"200px",
options: [
{
value: "1",
content: "1",
disabled: true
},
{
value: "2",
content: "2"
}
]
}
]
});

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

The returned object of the Select control looks like:

{
errorMessage: "",
height: "content",
helpMessage: "",
hiddenLabel: false,
icon: "",
label: "select",
labelPosition: "top",
labelWidth: "50px",
padding: 0,
preMessage: "",
successMessage: "",
validation: undefined,
width: "200px"
}

You will find the description of these properties here.

Change log:

added in v7.0


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