SpinBox

SpinBox is a textfield width 2 arrow buttons to change (increase, and decrease by 1) its integer value. The textfield input is filtered for digits, but the range isn't checked, you can also delete its content.

<spinbox text="100" />

Properties
NameTypeDefaultDescription
minimumintegerInteger.MIN_VALUEMinimum value. It's not possible to set the spinbox below this value by the arrow button.
maximumintegerInteger.MAX_VALUEMaximum value. It's not possible to set the spinbox above this value by the arrow button.
stepinteger1Increment step when using spinbox arrows. 1 by default.
text, columns, editable, and alignment parameters are described at textfield
name, enabled, visible, tooltip, property, width, height, colspan, rowspan, weightx, weighty, halign, and valign parameters are similar to component
Listeners
NameDescription
actionInvokes the given method when there was change in the text or a new value was spinned.
Keyboard-actions
OperationAction
Up arrowDecreases the value
Down arrowIncreases the value
Tab, Shift-TabNavigate forward, backward