Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2016-0-4 21:23

Class enchant.widget.ListItem

Class Summary
Constructor Attributes Constructor Name and Description
 
enchant.widget.ListItem(width, height, content, icon, icon)
List elements.
Field Summary
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.
See:
enchant.widget.ListItemVertical

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.