Checkbox

Checkbox[x]

represents a checkbox with setting x, displayed as when x is True and when x is False.

Checkbox[Dynamic[x]]

takes the setting to be the dynamically updated current value of x, with the value of x being toggled if the checkbox is clicked.

Checkbox[x,{val1,val2}]

represents a checkbox that toggles between values val1 and val2 and displays as and , respectively.

Checkbox[x,{val1,val2,val3,}]

represents a checkbox that cycles through values vali and displays as for all vali with i>2.

Details and Options

Examples

open allclose all

Basic Examples  (2)

The default states for Checkbox:

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

Using different values for states:

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

Scope  (3)

Options  (8)

Applications  (4)

Properties & Relations  (1)

See Also

Toggler  Opener  Setter  Panel  RadioButton  Control  CheckboxBar

Tutorials

Introduced in 2007
(6.0)