Skip to content

UI.Variable

Name Mandatory Description Default Type
⬅️ Input The input of the shard, if any Any
Output ➡️ The resulting output of the shard Any
Variable Yes The variable that holds the value. None &Any
Labeled Yes If the name of the variable should be visible as a label. None Bool

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
@wire(ui-wire {
  UI.Window(
    Position: @f2(0 0)
    Anchor: Anchor::Center
    Width: 200
    Height: 200
    Flags: [WindowFlags::NoResize]
    Contents: {
      UI.CentralPanel(
      UI.Variable(my-var))
    }
  )
} Looped: true)

{ui-behavior: ui-wire}