Skip to content
Brian Cavalier edited this page Oct 10, 2011 · 1 revision

wire/dojo/store

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.

Options

{
	module: 'wire/dojo/data'

	// Easy!  There are no options, just include the plugin.
}

resource! References

Syntax

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' }
Clone this wiki locally