Content:
- Examples
- Properties
- Methods

A checkbox in UI development is a graphical control element that allows users to toggle between two states, typically checked or unchecked, to indicate a choice or selection.

ckb = ui.addCheckbox( parent, text, options?, width?, height? ) → ui object: Checkbox

Here are the methods available for Checkbox Component

Examples

Example - Basic click to expand contents 

Example - Colors click to expand contents 

Example - Text positions click to expand contents 

Example - Adding custom checkbox icon click to expand contents 

Properties

The following properties are available on the Checkbox object:

absHeightNumber
absLeftNumber
absTopNumber
absWidthNumber
backColorString
backImageString
borderNumber
borderColorString
borderStyleString
checkIconString
colorString
cornerRadiusNumber
disableBoolean
disabledBoolean
elObject
elStyleString
enabledBoolean
fontFileString
heightNumber
iconColorString
iconSizeNumber
isVisibleBoolean
leftNumber
marginsList
opacityNumber
optionsString
paddingList
parentObject
positionObject
rotationNumber
spaceBetweenNumber
textString
textColorString
textPositionString
textSizeNumber
topNumber
typeString
uncheckIconString
valueBoolean
visibilityString
widthNumber

Methods

The following methods are available on the Checkbox object:

getIcon() → Object
getPosition( options ) → Object
gone()
hide()
setScale( x, y )
show()