const form = new dhx.Form("form_container", {
rows: [
{
type: "fieldset",
label: "Section name",
rows: [
{
type: "input",
name: "name",
required: true,
label: "Name",
placeholder: "Type text",
},
{
type: "input",
name: "surname",
required: true,
label: "Surname",
placeholder: "Type text",
},
]
}
]
});
form.getItem("fieldset").getProperties();
The returned object of the Fieldset control looks like:
{
"align": undefined
"css": "",
"height": "content",
"label": "Personal info",
"labelAlignment": "left",
"padding": undefined,
"width": "content"
}
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