GridLayout TextFiled Label position

I have a Form which is using GridLayout.
When I use CustomFieldFactory the labels of the TextFields are above each field, is there a way I can position the Field Labels on the left side of each TextField?

Thank You

Peter

HI,

You could override the
attachField()
method in Form and insert a HorizontalLayout in each cell and add to it a Label that holds the caption and then the actual field. Or you could use a FormLayout inside the grid cells.

See
this example
for using the attachField().

It’s possible to have the caption left of the component with CssLayout, but it’s a prone to problems with word wrapping, for example if the grid cells are too small.