/
The CheckboxButton component

The CheckboxButton component

It is an IControl<Boolean> which returns the boolean value for the selection, just like a checkbox. The button is created as:

add(new CheckboxButton());

Besides the usual properties that belong to an IControl the button has two additional properties:

NameTypeDescription
onLabelStringThe text to show as the "on" value. Defaults to a Msgs label when null.
offLabelStringThe text to show as the "off" value.

Related content