Skip to main content

InputCheckbox

Wolfram Kernel
Execution environment
Notebook`Kernel`Inputs`
Context
InputCheckbox[initial_Boolean:False, opts___] _EventObject

represents a UI element - checkbox or a toggle switch

Event generation

Emits True or False based on its state

Options

"Label"

A text label for an element

"Description"

A description label for an element

"Topic"

The default topic/pattern is "Default". Specifies an event-pattern used on emitting (see more on EventFire patterns topics)

Application

A basic GUI element

tg = InputCheckbox[False];
EventHandler[tg, Print]

TODO

Developers notes

  • Use server.ask() method for restoring the original state