labelWidth

the width of the label

number| string labelWidth;

Example

webix.ui({
    cols:[
        { view:"form", elements:[
            { 
                view:"checkbox", 
                id:"ch1", 
                label:"Block pop-up windows", 
                labelWidth:80
            },
            { 
                view:"checkbox", 
                id:"ch2", 
                label:"Load images automatically"
            },
            { 
                view:"checkbox", 
                id:"ch3", 
                label:"Enable JavaScript"
            } 
        ]}
    ]
});


Default value:

80

Related samples

Details

You can adjust the lable width to its content width by setting the labelWidth property to "auto":

{
    view: "text",
    label: "First Name",
    labelWidth: "auto"
}

Related sample:  Text Input: Autowidth for Label

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.