Content:
- Examples
- Properties
- Methods

A button component in mobile UI development is an element that triggers an action when pressed.

btn = ui.addButton( parent, text, options?, width?, height? ) → ui object: Button

In case of Upload, you can specify Multiple to accept multiple files.

Here are the methods available for Button Component

Examples

Example - Button variants click to expand contents 

Example - Button theme colors click to expand contents 

Example - Button sizes click to expand contents 

Example - Button tooltips click to expand contents 

Example - Button with icons click to expand contents 

Example - Buttons with badges click to expand contents 

Example - Upload button click to expand contents 

Example - Toggleable Buttons click to expand contents 

Properties

The following properties are available on the Button object:

absHeightNumber
absLeftNumber
absTopNumber
absWidthNumber
acceptedFilesString
activeBoolean
backColorString
backImageString
badgeNumber
badgeColorString
borderNumber
borderColorString
borderStyleString
colorString
cornerRadiusNumber
disabledBoolean
elObject
elStyleString
fontFileString
heightNumber
iconString
isVisibleBoolean
leftNumber
marginsList
opacityNumber
optionsString
paddingList
parentObject
positionObject
rotationNumber
sizeVariantString
textString
textColorString
textSizeNumber
toolTipString
toolTipPositionString
topNumber
typeString
variantString
visibilityString
widthNumber

Methods

The following methods are available on the Button object:

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