fun EventTarget.field(text: String? = null, orientation: Orientation = HORIZONTAL, forceLabelIndent: Boolean = false, op: Field.() -> Unit = {}): Field
Create a field with the given text and operate on it.
forceLabelIndent
- Indent the label even if its empty, good for aligning buttons etc
Orientation
Whether to create an HBox (HORIZONTAL) or a VBox (VERTICAL) container for the field content
Op
Code that will run in the context of the content container (Either HBox or VBox per the orientation)
See Also