-
Notifications
You must be signed in to change notification settings - Fork 68
wire dojo data
Brian Cavalier edited this page Oct 10, 2011
·
1 revision
The wire/dojo/data
plugin uses wire.js's JSON-reference-like syntax to provide an easy way to create and inject Dojo datastores. This plugin can help when working with Dijits, since many haven't yet been converted to use the newer Dojo object stores, such as JsonRest.
Note that behind the scenes, this plugin uses a dojo/store/JsonRest
object store wrapped with the dojo/data/ObjectStore adapter, and so requires Dojo 1.6 or later.
{
module: 'wire/dojo/data'
// Easy! There are no options, just include the plugin.
}
The following is a reference to a Dojo datastore whose target is the REST endpoing at url/of/datastore/target
.
{ $ref: 'datastore!url/of/datastore/target' }