Mixin for widgets to generate the list items corresponding to the dojo/store data provider object.
Mixin for widgets to generate the list items corresponding to the dojo/store 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/_StoreListMixin reference documentation for more information.
If true, refresh() does not clear the existing items.
A property name (a property in the dojo/store item) that specifies that item's children.
An optional parameter mapping field names from the store to ItemList names. Example: itemMap:{text:'label', profile_image_url:'icon'}
A property name (a property in the dojo/store item) that specifies that item's label.
A query that can be passed to 'store' to initially filter the items.
Creates list item properties.
Parameter | Type | Description |
---|---|---|
item | Object |
Set the 'dir' attribute to support Mirroring. To be implemented by the bidi/_StoreLisMixin.js
Parameter | Type | Description |
---|---|---|
props | undefined |
Parameter | Type | Description |
---|---|---|
query | String | |
queryOptions | Object |
Creates a list item widget.
Parameter | Type | Description |
---|---|---|
item | Object |
Given the data, generates a list of items.
Parameter | Type | Description |
---|---|---|
items | Array |
The class used to create list items. Default is dojox/mobile/ListItem.
Fetches the data and generates the list items.
Parameter | Type | Description |
---|---|---|
query | String | |
queryOptions | Object |
Sets the store to use with this widget.
Parameter | Type | Description |
---|---|---|
store | dojo/store/api/Store | |
query | String | |
queryOptions | Object |
Calls createListItem and adds the new list item when a new data item has been added to the store.
Parameter | Type | Description |
---|---|---|
item | Object | |
insertedInto | Number |
A handler that is called after the fetch completes.
Parameter | Type | Description |
---|---|---|
items | Array |
Deletes an existing item.
Parameter | Type | Description |
---|---|---|
item | Object | |
removedFrom | Number |
An error handler.
Parameter | Type | Description |
---|---|---|
errorData | Object |
Updates an existing list item when a data item has been modified.
Parameter | Type | Description |
---|---|---|
item | Object | |
insertedInto | Number |