CheckBox

Check box UI component that extends UIComponent class. For more methods for this component check UIComponent class.

Constructor

new CheckBox(textopt)

CheckBox constructor.

Parameters:
NameTypeAttributesDescription
textstring<optional>

Text displayed next to the checkbox

Classes

CheckBox

Methods

selected(selectedopt) → {boolean|CheckBox}

Sets or gets the selection state of the checkbox.

Parameters:
NameTypeAttributesDescription
selectedboolean<optional>

true to select, false to deselect the checkbox.

Returns:

If called without arguments, returns boolean value, otherwise returns this CheckBox instance.

Type: 
boolean | CheckBox