FormGrid

A layout, which is quite useful for laying out forms.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val children: ObservableList<FormRow>

The base class Node has no children, so this is an empty list.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun nodePrefHeight(): Float

Each subclass of node can determine its preferred height. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
open override fun nodePrefWidth(): Float

Each subclass of node can determine its preferred width. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
fun FormGrid.row(block: FormRow.() -> Unit? = null)

Add a FormRow to a FormGrid. e.g.

fun FormGrid.row(label: String, block: FormRow.() -> Unit? = null)

A very common convenience method when left is a label. This is equivalent to :

fun FormGrid.row(label: String, text: String, block: FormRow.() -> Unit? = null)

A convenience method for when you want a row with just a label on the left, and text on the right.