Content:
- Examples
- Properties
- Methods

Lists are continuous, vertical indexes of text or images.

lst = ui.addList( parent, list?, options?, width?, height? ) → ui object: List

If Icon option is passed, the list must be of the form [icon, title, body, secondary]. To display an image avatar, passed and additional Avatar option and the list must be of the form [image, title, body, secondary]
If no Icon option is passed, the list is treated as [title, body, secondary] by default.
The secondary action is an icon button by default, to display as a text passed secondarytext option.
Adding a selectable list will disregard the icon option.

Here are the following methods available on the List Component.

Examples

Example - Basic list click to expand contents 

Example - List with icon and body click to expand contents 

Example - Contacts list click to expand contents 

Example - Elevated list click to expand contents 

Example - Outlined List click to expand contents 

Example - Selectable List click to expand contents 

Properties

The following properties are available on the List object:

absHeightNumber
absLeftNumber
absTopNumber
absWidthNumber
avatarSizeString
avatarVariantString
backColorString
backImageString
borderNumber
borderColorString
borderStyleString
checkboxColorString
cornerRadiusNumber
disabledBoolean
elObject
elevationNumber
elStyleString
fontFileString
heightNumber
iconColorString
iconSizeNumber
isVisibleBoolean
itemPaddingList
labelString
leftNumber
marginsList
opacityNumber
optionsString
outlinedBoolean
paddingList
parentObject
positionObject
rotationNumber
selectableBoolean
textColorString
textColor1String
textColor2String
textSizeNumber
textSize1Number
textSize2Number
topNumber
typeString
visibilityString
widthNumber

Methods

The following methods are available on the List object:

getItem( title, json ) → Object
getItemByIndex( index, json ) → Object
getPosition( options ) → Object
getSelectedItems() → List
getSelectedTitles() → List
gone()
hide()
setScale( x, y )
show()