| Name |
Mandatory |
Description |
Default |
Type |
⬅️ Input |
|
The value that will be passed to the Action shards of the button. |
|
Any |
Output ➡️ |
|
Indicates whether the button was clicked during this frame. |
|
Bool |
Label |
No |
The text label of this button. |
`` |
StringVar(String) |
Action |
No |
The shards to execute when the button is pressed. |
none |
NoneShard[Shard] |
Style |
No |
The text style. |
none |
{Any}Var({Any})None |
Wrap |
No |
The text wrapping mode. |
TextWrap::Extend |
TextWrapBool |
Selected |
No |
Indicates whether the button is selected. |
none |
BoolVar(Bool)None |
Clickable button with text.
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | @wire(ui-wire {
UI.Window(
Position: @f2(0 0)
Anchor: Anchor::Center
Width: 200
Height: 200
Flags: [WindowFlags::NoResize]
Contents: {
UI.Button(
Label: "Click me!"
Style: {color: @color(255 255 0)}
Action: Msg("Clicked")
)
}
)
} Looped: true)
{ui-behavior: ui-wire}
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | @wire(ui-wire {
UI.Window(
Position: @f2(0 0)
Anchor: Anchor::Center
Width: 200
Height: 200
Flags: [WindowFlags::NoResize]
Contents: {
UI.Button(
Label: "Click me!"
Action: Msg("Clicked")
)
}
)
} Looped: true)
{ui-behavior: ui-wire}
|