Hi, I’m using this:
<formLayout id="form" dataContainer="kanbanTaskDc" labelsPosition="ASIDE">
But id like to know how to change the size there is no width on the
Hi,
Unfortunately, neither FormLayout
nor FormItem
(that is used as a wrapper when we want to control label position) provide direct API to set label width. However, you can define label widths using styles, for example, assuming that you assign my-awesome-form-layout-class-name
class name to the FormLayout
component, then the following styles will change its label width:
.my-awesome-form-layout-class-name > vaadin-form-item::part(label) {
width: 20rem;
}
Thank you !