Content:
- Examples
- Properties
- Methods

In UI development, a SwitchGroup refers to a collection or grouping of individual switches.

swg = ui.addSwitchGroup( parent, list?, options?, width?, height? ) → ui object: SwitchGroup

Here the methods available for the SwitchGroup Component.

Examples

Example - Basic click to expand contents 

Example - SwitchGroup with leading icons click to expand contents 

Example - With custom styles click to expand contents 

Example - Elevated switchgroup with onChange callback click to expand contents 

Example - Outlined switchgroup click to expand contents 

Properties

The following properties are available on the SwitchGroup object:

absHeightNumber
absLeftNumber
absTopNumber
absWidthNumber
backColorString
backImageString
borderNumber
borderColorString
borderStyleString
colorString
cornerRadiusNumber
disabledBoolean
edgeString
elObject
elevationNumber
elStyleString
fontFileString
heightNumber
iconColorString
iconSizeNumber
isVisibleBoolean
itemPaddingList
labelString
labelColorString
labelSizeNumber
leftNumber
listList
marginsList
opacityNumber
optionsString
outlinedBoolean
paddingList
parentObject
positionObject
rotationNumber
textColorString
textSizeNumber
topNumber
typeString
visibilityString
widthNumber

Methods

The following methods are available on the SwitchGroup object:

getEnabled( index ) → Boolean
getPosition( options ) → Object
getValueByIndex( index ) → Boolean
gone()
hide()
setScale( x, y )
show()