FormLayout
classin packageklyn.gui.windows.layouts
public class FormLayout extends Layout:
└ FormLayout
Form layout. The default behaviour interprets children as sequential `label / field` pairs. A `FormLayoutParams` instance with `fullRow` set to `true` can be used for separators or section titles.
form = Container(FormLayout())
form.add(Label("Login"))
form.add(TextBox())
Properties
Modifier and Type Member Description
public property columnSpacing
columnSpacing as Int = 12
No summary.
public property labelAlign
labelAlign as String = "start"
No summary.
public property labelWidth
labelWidth as Int = 0
No summary.
public property rowSpacing
rowSpacing as Int = 8
No summary.
Constructors
Modifier and Type Member Description
public FormLayout
FormLayout(rowSpacing as Int = 8, columnSpacing as Int = 12, labelWidth as Int = 0, labelAlign as String = "start"):
No summary.
Methods
Modifier and Type Member Description
public override layout
layout(container as Container) as Void:
No summary.
Methods inherited from Layout: _ceilDiv, _childOuterPreferredHeight, _childOuterPreferredWidth, _childParams, _clamp, _edgeBottom, _edgeLeft, _edgeRight, _edgeTop, _innerHeight, _innerWidth, _innerX, _innerY, _marginBottom, _marginLeft, _marginRight, _marginTop, _max, _min, _normalizeAlign, _place, _preferredHeight, _preferredWidth, layout