Mixin for widgets to generate the list items corresponding to the data provider object.
By mixing this class into the widgets, the list item nodes are generated as the child nodes of the widget and automatically regenerated whenever the corresponding data items are modified.
See the dojox/mobile/_DataListMixin reference documentation for more information.
If true, refresh() does not clear the existing items.
An optional parameter mapping field names from the store to ItemList name.
A query that can be passed to 'store' to initially filter the items.
Parameter | Type | Description |
---|---|---|
query | undefined | |
queryOptions | undefined |
Creates a list item widget.
Parameter | Type | Description |
---|---|---|
item | Object |
Given the data, generates a list of items.
Parameter | Type | Description |
---|---|---|
items | Array | |
dataObject | Object |
The class used to create list items. Default is dojox/mobile/ListItem.
Fetches the data and generates the list items.
Sets a query.
Parameter | Type | Description |
---|---|---|
query | dojo/data/api/Request | Object | |
queryOptions | Object |
Optional
|
Sets the store to use with this widget.
Parameter | Type | Description |
---|---|---|
store | dojo/data/store | |
query | dojo/data/api/Request | Object | |
queryOptions | Object |
Optional
|
An handler that is called after the fetch completes.
Parameter | Type | Description |
---|---|---|
items | Array | |
request | Object |
Parameter | Type | Description |
---|---|---|
deletedItem | Object |
An error handler.
Parameter | Type | Description |
---|---|---|
errorData | Object | |
request | Object |
Parameter | Type | Description |
---|---|---|
newItem | Object | |
parentInfo | Object |
Optional
|
Parameter | Type | Description |
---|---|---|
item | Object | |
attribute | String | |
oldValue | Object | Array | |
newValue | Object | Array |
Refresh list on close.
Parameter | Type | Description |
---|---|---|
request | Object |
Optional
|