Hi all!
I didn’t find anything while reading the https://vaadin.com/docs/latest/components/form-layout about subject. It’s possible?
Thanks!
Hi all!
I didn’t find anything while reading the https://vaadin.com/docs/latest/components/form-layout about subject. It’s possible?
Thanks!
Hi! Intuitively I would just use single field in the FormLayout. Something like:
FormLayout form = new FormLayout();
FormLayout.FormItem item = form.addFormItem(new TextField(), "My Label");
add(form);
(disclaimer: didn’t test this
)
Sami, and if I need more fields, I have to use other FormLayout?
Typically they should go into the same FormLayout. Well that depends, but if they are logically connected, they should also be visually connected for good UX.
But yes, if you have unrelated fields, and only looking for the label positioning, you should wrap them into separate FormLayouts.