Mixin for widgets to enable dojo/store data store.
By mixing this class into a widget, it can get data through a dojo/store data store. The widget must implement the following methods to handle the retrieved data:
See the dojox/mobile/_StoreMixin reference documentation for more information.
A property name (a property in the dojo/store item) that specifies that item's children.
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.
Parameter | Type | Description |
---|---|---|
query | String | |
queryOptions | Object |
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 |
Called when a new data item has been added to the store. Note: for compatibility with previous versions where this function did not exist, if onAdd is not defined, onUpdate will be called instead.
Parameter | Type | Description |
---|---|---|
item | undefined | |
insertedInto | undefined |
A handler that is called after the fetch completes.
Parameter | Type | Description |
---|---|---|
items | undefined |
Called when a data item has been removed from the store.
Parameter | Type | Description |
---|---|---|
item | undefined | |
removedFrom | undefined |
An error handler.
Parameter | Type | Description |
---|---|---|
errorData | undefined |
Called when an existing data item has been modified in the store. Note: for compatibility with previous versions where only onUpdate was present, if onAdd is not defined, onUpdate will be called instead.
Parameter | Type | Description |
---|---|---|
item | undefined | |
insertedInto | undefined |