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

Examples

open allclose all

Basic Examples  (1)

In[1]:=
Click for copyable input
Out[1]=

Dynamically change the value of x:

In[2]:=
Click for copyable input
Out[2]=

Options  (9)

Properties & Relations  (2)

See Also

RadioButtonBar  Setter  Checkbox  Button  Toggler  Control

Tutorials

Introduced in 2007
(6.0)