VBox layout

A VBox stacks the controls or the nodes vertically, in the order that they are declared inside its block. Take a look at the following example:

    vbox {
      button("Button A")
      button("Button B")
    }

This image illustrates the vbox shown in the preceding code:

 

Get Kotlin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.