CSS style of FormLayout

Viewed 89

Is there a way to style the margin between two elements:

enter image description here

It would like to change the margin to "var(--lumo-space-s)"

It would be great to do it directly within the source by getStyle().set(..., ...).

Thanks for your help

Best Regards, Thomas

1 Answers

It is possible to define the value of the --vaadin-form-layout-column-spacing in

getStyle().set("--vaadin-form-layout-column-spacing",value);
Related