Lists are continuous, vertical indexes of text or images.
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
Properties
The following properties are available on the List object:
absHeight → Number
absLeft → Number
absTop → Number
absWidth → Number
avatarSize → String
avatarVariant → String
backColor → String
backImage → String
border → Number
borderColor → String
borderStyle → String
checkboxColor → String
cornerRadius → Number
disabled → Boolean
el → Object
elevation → Number
elStyle → String
fontFile → String
height → Number
iconColor → String
iconSize → Number
isVisible → Boolean
itemPadding → List
label → String
left → Number
margins → List
opacity → Number
options → String
outlined → Boolean
padding → List
parent → Object
position → Object
rotation → Number
selectable → Boolean
textColor → String
textColor1 → String
textColor2 → String
textSize → Number
textSize1 → Number
textSize2 → Number
top → Number
type → String
visibility → String
width → Number
Methods
The following methods are available on the List object:
destroy()
getPosition(
options )
→ Object
getSelectedItems() → List
getSelectedTitles() → List
gone()
hide()
popItem()
show()