ListItem
A ListItem widget is a standard list item. You can manually add the ListItem widget to a list widget by using the Items editor.
Derived base
dojox.mobile.ListItem
Property
id
A unique ID string for the widget.
icon
An icon to be displayed on the widget.
label
The text to be displayed as the label of the widget.
moveTo
The id of the transition destination view.
selected
false
This is the default value. The item is not selected by default.
true
The item is highlighted to indicate that it is selected by default.
transition
The animated transition effect for the widget.
transitionDir
1
This is the default value. Transition forward.
-1
Transition backward.
checked
false
This is the default value. The widget is not selected an is displayed as it is.
true
The widget is selected. A check mark is displayed on the right side of the widget.
clickable
true
This is the default value. The widget is clickable even if the transition destination is not specified in the moveTo property.
false
The widget is not clickable.
header
false
This is the default value. The item is not the category header.
true
The item is the category header.
rightIcon
An icon image to be displayed on the right side of the item.
rightText
The right-aligned text to be displayed on the right side of the item.
postDataScope
all
This is the default value. All data in the flow is submitted.
current
The data in the current view is submitted.
none
No data is submitted.
variableHeight
false
This is the default value. The height of all list items is consistent.
true
The height of the list item varies according to the content in the item.
ECA editor support
Events that can be added to the ListItem widget with the ECA editor
onClick
This event is called when you tap the widget.
onTouchStart
This event is called when you touch the widget.
Property that can be configured for the ListItem widget with the ECA editor
id
A unique ID string for the widget.
Applicable ECA part: Expression in Condition
Functions that can be configured for the ListItem widget with the ECA editor
set(name,value)
Set a value for a widget property.
Applicable ECA part: Actions
get(name)
Returns the value of a widget property.
Applicable ECA part: Expression in Condition
See also