Development tools : XUI Mobile editor : Adding Mobile widgets : XUI Mobile widgets : RoundRectList
  
RoundRectList
A RoundRectList widget is a round-corner rectangle list that can be used to display a group of items.
Derived base
dojox.mobile.RoundRectList
Properties
id
A unique ID string for the widget.
select
null
No item in the list can be selected.
single
Only one item in the list can be selected.
multiple
Multiple items in the list can be selected.
editable
false
This is the default value. The list items are not editable.
true
The list items are editable.
dataName
The name of a data element to which the widget is bound. If no data to be sent to the server, leave this property blank.
listValue
The name of the iColl that is defined to load data for the list items.
labelField
The field name in iColl for the item label on the left side.
rightTextField
The field name in iColl for the item label on the right side.
valueField
The field name in iColl for submitting a value.
label
The text to be displayed as the label of the widget.
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 RoundRectList widget with the ECA editor
onCheckStateChanged
This event is called when the value of the Checked property is changed.
onDeleteItem
This event is called when you tap the delete button to remove an item from the list.
Property that can be configured for the RoundRectList 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 RoundRectList widget with the ECA editor
set(name,value)
Set a value for a widget property.
Applicable ECA part: Actions
isItemSelected(index)
Return true if an item in the list is selected or false if no item in the list is selected.
Applicable ECA part: Condition
Expression in Condition
startEdit()
Turn on the editable mode.
Applicable ECA part: Actions
endEdit()
Turn off the editable mode.
Applicable ECA part: Actions
selectItem(index)
Select an item of the list.
Applicable ECA part: Actions
get(name)
Returns the value of a widget property.
Applicable ECA part: Expression in Condition
getSelectedItemValue(key)
Return the value of the selected item.
Applicable ECA part: Expression in Condition
Items
A RoundRectList widget can contain the following widgets as the list items:
ListItem
ListItemTemplate
CustomizeListItem
If you add a ListItemTemplate widget to a list widget, you can not add the other ListItem, CustomizeListItem, or ListItemTemplate widgets to the list.
See also
XUI Mobile widgets