| Name |
Mandatory |
Description |
Default |
Type |
⬅️ Input |
|
The value is ignored. |
|
None |
Output ➡️ |
|
Indicates whether the radio button was clicked during this frame. |
|
Bool |
Label |
No |
The text label of this radio button. |
none |
StringNone |
Variable |
No |
The variable that holds the input value. |
none |
AnyVar(Any) |
Value |
No |
The value to compare with. |
none |
Any |
Style |
No |
The text style. |
none |
{Any}Var({Any}) |
A radio button for selecting a value amongst multiple choices.
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | @wire(ui-wire {
UI.Window(
Position: @f2(0 0)
Anchor: Anchor::Center
Width: 700
Height: 400
Contents: {
UI.CentralPanel({
Once({
2 >= choice
})
UI.RadioButton(Label: "Choice 1" Style: {} Variable: choice Value: 1)
UI.RadioButton(
Label: "Choice 2"
Style: {underline: true}
Variable: choice
Value: 2
)
UI.RadioButton(Label: "Choice 3" Style: {} Variable: choice Value: 3)
})
}
)
} 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
20
21
22
23
24 | @wire(ui-wire {
UI.Window(
Position: @f2(0 0)
Anchor: Anchor::Center
Width: 700
Height: 400
Contents: {
UI.CentralPanel({
Once({
2 >= choice
})
UI.RadioButton(
Label: "Choice 1"
Variable: choice
Value: 1
)
UI.RadioButton("Choice 2" choice 2)
UI.RadioButton("Choice 3" choice 3)
})
}
)
} Looped: true)
{ui-behavior: ui-wire}
|