dojox/mobile/_DataMixin (version 1.10)

Summary

Mixin for widgets to enable dojo/data data store.

By mixing this class into a widget, it can get data through a dojo/data data store. The widget must implement onComplete(/Array/items) to handle the retrieved data.

See the dojox/mobile/_DataMixin reference documentation for more information.

Property Summary

  • queryA query that can be passed to 'store' to initially filter the items.
  • queryOptionsAn optional parameter for the query.
  • storeReference to data provider object used by this widget.

Method Summary

  • _setQuery(query,queryOptions)
  • refresh() Fetches the data and generates the list items.
  • setQuery(query,queryOptions) Sets a query.
  • setStore(store,query,queryOptions) Sets the store to use with this widget.

Properties

query

A query that can be passed to 'store' to initially filter the items.

queryOptions

An optional parameter for the query.

store

Reference to data provider object used by this widget.

Methods

_setQuery(query,queryOptions)
Parameter Type Description
query undefined
queryOptions undefined
refresh()

Fetches the data and generates the list items.

Returns:null | instance
setQuery(query,queryOptions)

Sets a query.

Parameter Type Description
query dojo/data/api/Request | Object
queryOptions Object
Optional
Returns:undefined
setStore(store,query,queryOptions)

Sets the store to use with this widget.

Parameter Type Description
store dojo/data/store
query dojo/data/api/Request | Object
queryOptions Object
Optional
Returns:null | undefined
Error in the documentation? Can’t find what you are looking for? Let us know!