Skip to content

UI.Tooltip

Name Mandatory Description Default Type
⬅️ Input The value that will be passed to both the Contents and OnHover shards of the tooltip. Any
Output ➡️ The output of this shard will be its input. Any
Contents No The UI contents. none NoneShard[Shard]
OnHover No The tooltip contents. none StringVar(String)Shard[Shard]None

Display a tooltip when the Contents is hovered over.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
@wire(ui-wire {
  UI.Window(
    Position: @f2(0 0)
    Anchor: Anchor::Center
    Width: 200
    Height: 200
    Flags: [WindowFlags::NoResize]
    Contents: {
      UI.Tooltip(
        OnHover: {
          "Tooltip" | UI.Label
        }
        Contents: {
          "Lorem ipsum" | UI.Label
        }
      )
    }
  )
} Looped: true)

{ui-behavior: ui-wire}