Class enchant.widget.ListItem
- Defined in: widget.enchant.js
- Extends enchant.widget.ListElement
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.widget.ListItem(width, height, content, icon, icon)
List elements.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
enchant.widget.ListItem.icon
Icon.
|
<static> |
enchant.widget.ListItem.rightIcon
Icon on the right.
|
- Fields borrowed from class enchant.Entity:
- backgroundColor, buttonMode, buttonPressed, compositeOperation, debugColor, opacity, originX, originY, rotation, scaleX, scaleY, touchEnabled, visible
- Fields borrowed from class enchant.Node:
- age, parentNode, scene, x, y
Method Summary
Method Attributes | Method Name and Description |
---|---|
<static> |
enchant.widget.ListItem.refresh()
Renew changes.
|
- Methods borrowed from class enchant.Entity:
- disableCollection
- enableCollection
- intersect
- rotate
- scale
- within
- Methods borrowed from class enchant.Node:
- moveBy
- moveTo
- Methods borrowed from class enchant.EventTarget:
- addEventListener
- clearEventListener
- dispatchEvent
- on
- removeEventListener
Class Detail
enchant.widget.ListItem(width, height, content, icon, icon)
List elements.
Icons and leftmost buttons can be set.
Use enchant.widget.ListItemVertical to set items lined up vertically.
- Parameters:
- {Number} width
- Element width.
- {Number} height
- Element height.
- {*} content Optional
- ListItem content.
- {enchant.Sprite|enchant.Surface} icon Optional
- ListItem icon.
- {enchant.Sprite|enchant.Surface} icon Optional
- ListItem right side icon.
Field Detail
<static>
enchant.widget.ListItem.icon
Icon.
It appear on the left.
<static>
enchant.widget.ListItem.rightIcon
Icon on the right.
It appear on the right.
Method Detail
-
<static> enchant.widget.ListItem.refresh()Renew changes.