RadioButton
RadioButton[x,val]
represents a radio button whose setting x is set to val when the button is clicked.
RadioButton[x,val]
is displayed as when x is val, and as otherwise.
RadioButton[Dynamic[x],val]
takes the setting to be the dynamically updated current value of x, with the value of x being reset if the button is clicked.
Details and Options
- RadioButton is effectively a special case of Setter. »
- Radio buttons representing several mutually exclusive choices can be created by having several RadioButton[Dynamic[x],vali] with the same x but different vali. »
- RadioButton[] is equivalent to RadioButton[False,True].
Examples
open allclose allOptions (9)
Enabled (2)
By default RadioButton is enabled:
By setting Enabled->False, the radio button is disabled, but visible in its current state:
ImageMargins (1)
Increase the clickable area of RadioButton:
Properties & Relations (2)
Text
Wolfram Research (2007), RadioButton, Wolfram Language function, https://reference.wolfram.com/language/ref/RadioButton.html.
CMS
Wolfram Language. 2007. "RadioButton." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RadioButton.html.
APA
Wolfram Language. (2007). RadioButton. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RadioButton.html