Skip to content

UI.Label

Name Mandatory Description Default Type
⬅️ Input The input of the shard, if any String
Output ➡️ The resulting output of the shard String
Wrap No The text wrapping mode. TextWrap::Extend TextWrapBool
Style No The text style. none {Any}Var({Any})None

Static text.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
@wire(ui-wire {
  UI.Window(
    Title: "UI Label"
    Position: @f2(0 0)
    Anchor: Anchor::Center
    Width: 700
    Height: 400
    Contents: {
      UI.Columns(
        [{"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." | UI.Label(Wrap: true)}
          none
          {"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." | UI.Label(Wrap: false)}
        ]
      )
    }
  )
} Looped: true)

{ui-behavior: ui-wire}


 

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
@wire(ui-wire {
  UI.Window(
    Title: "UI Label"
    Position: @f2(0 0)
    Anchor: Anchor::Center
    Width: 700
    Height: 400
    Contents: {
      "Hello Shards!" | UI.Label
      "Hello Shards!" | UI.Label(Style: {strikethrough: true})
      "Hello Shards!" | UI.Label(Style: {underline: true})
      "Hello Shards!" | UI.Label(Style: {italics: true})
      "Hello Shards!" | UI.Label(Style: {color: @color(96 96 12)})
      "Hello Shards!" | UI.Label(Style: {color: @color(12 96 96) italics: true})
    }
  )
} Looped: true)

{ui-behavior: ui-wire}


 

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

{ui-behavior: ui-wire}