Content:
- Examples
- Properties
- Methods

In mobile UI design, a Chip is a compact element displaying attributes, input, or actions.

chp = ui.addChip( parent, text, options?, width?, height? ) → ui object: Chip

If you want to change the height of the Chip later on after initializing, pass the height argument.

Here are the methods available for Chips Component

Examples

Example - Chips click to expand contents 

Example - Deletable chip click to expand contents 

Example - Custom styles click to expand contents 

Example - Avatar click to expand contents 

Properties

The following properties are available on the Chip object:

absHeightNumber
absLeftNumber
absTopNumber
absWidthNumber
avatarString
backColorString
backImageString
borderNumber
borderColorString
borderStyleString
colorString
cornerRadiusNumber
deleteIconString
disabledBoolean
elObject
elStyleString
enabledBoolean
fontFileString
heightNumber
iconString
iconColorString
iconSizeNumber
isVisibleBoolean
leftNumber
marginsList
opacityNumber
optionsString
paddingList
parentObject
positionObject
rotationNumber
sizeVariantString
textString
textColorString
textSizeNumber
topNumber
typeString
variantString
visibilityString
widthNumber

Methods

The following methods are available on the Chip object:

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