Skip to main content

width

Optional. Sets the width of the control group

width?: string | number | "content";

Default value: "content"

Example

const form = new dhx.Form("form_container", {
css: "dhx_widget--bordered",
width: "400px", // sets the common width for rows
padding: "20px",
rows: [
{
type: "text",
name: "text",
value: "Do you agree with our terms and conditions?"
},
{
padding: "10px",
width: "200px", // sets the common width for cols
align: "end",
cols: [{
type: "checkbox",
width: "80px",
label: "I agree",
name: "agree",
id: "agree",
checked: true
},
{
type: "checkbox",
label: "I disagree",
name: "align",
}]
}
]
});

Change log:

added in v6.4