Content:
- Properties
- Methods

In mobile UI development, a button group refers to a collection of buttons presented together, often used for related actions.

btg = ui.addButtonGroup( parent, list?, options?, width?, height? ) → ui object: ButtonGroup

A toggleable buttongroup can accept additional Radio option to have atmost one toggled button item. If buttongroup is toggleable, please refer to the setOnTouch callback for the correct order of arguments.

Here are the methods available for ButtonGroup Component

Example - Basic ButtonGroup click to expand contents 

Example - ButtonGroup variants click to expand contents 

Example - ButtonGroup colors click to expand contents 

Example - ButtonGroup sizes click to expand contents 

Example - ButtonGroup icons click to expand contents 

Properties

The following properties are available on the ButtonGroup object:

absHeightNumber
absLeftNumber
absTopNumber
absWidthNumber
activeItemsList
backColorString
backImageString
borderNumber
borderColorString
borderStyleString
colorString
cornerRadiusNumber
disabledBoolean
elObject
elStyleString
fontFileString
heightNumber
isVisibleBoolean
leftNumber
listList
marginsList
opacityNumber
optionsString
orientationString
paddingList
parentObject
positionObject
rotationNumber
sizeVariantString
textColorString
textSizeNumber
toolTipPositionString
toolTipsList
topNumber
typeString
variantString
visibilityString
widthNumber

Methods

The following methods are available on the ButtonGroup object:

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