Skip to content

UI.Horizontal

Name Mandatory Description Default Type
⬅️ Input The value that will be passed to the Contents shards of the layout. Any
Output ➡️ The output of this shard will be its input. Any
Contents No The UI contents. none NoneShard[Shard]
Wrap No Wrap the content once it reaches the right edge. false Bool
Centered No Center the contents horizontally. false Bool

Layout the contents horizontally.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
@wire(ui-wire {
  UI.Window(
    Title: "UI Horizntal"
    Position: @f2(0 0)
    Anchor: Anchor::Center
    Width: 700
    Height: 400
    Contents: {
      UI.Horizontal({
        "Hello" | UI.Label
        UI.Separator
        "World" | UI.Label
      })
    }
  )
} Looped: true)

{ui-behavior: ui-wire}