Skip to content

Checkbox : VisualElement

The Checkbox is a visual element that can be checked.

Properties

PropertyTypeDefaultDescription
checkedbooleanWhethercheckbox is checked
textstringemptyText to display
checkedTextstringTextwhen checked
autoSizebooleantrueWhether to automatically size the checkbox

Protected Functions

MethodReturnsDescription
Checkbox.newCheckboxCreates a new Checkbox instance
Checkbox:init-Initializes the Checkbox instance
Checkbox:mouse_clickbooleanHandles mouse click events
Checkbox:render-Renders the Checkbox

Released under the MIT License.