vbox
vbox arranges nested components vertically.
XML Element |
|
|---|---|
Java Class |
|
Basics
The example arranges several components in one column:
<vbox>
<span text="Span"/>
<textField placeholder="TextField"/>
<button text="Button"/>
<button text="Button"/>
</vbox>
Attributes
Common attributes serve the same purpose for all components.
The following attributes are specific to vbox:
| Name | Description | Default |
|---|---|---|
Sets how the total width and height of an element is calculated. Possible values are: |
|
|
Specifies the ID of a child component whose flex-grow value is set to |
— |
|
Defines how the browser distributes space between and around content items. For usage examples, see Layout Rules. |
|
|
Adds margin outside the layout on all four sides. See margin on MDN. |
|
|
Adds padding inside the layout on all four sides. See padding on MDN. |
|
|
Adds theme-defined spacing between child components. |
|
|
When |
|
Handlers
| Name | Description |
|---|---|
Fires when the layout is attached to the UI. |
|
Fires when the layout is clicked. |
|
Fires when the layout is detached from the UI. |