Skip to content
Brian Cavalier edited this page Oct 13, 2011 · 5 revisions

wire/dojo/dijit

The wire/dojo/dijit plugin provides integration with Dijit. It provides automatic lifecycle management for Dijits created using wire.js (see below for more information), a placeAt facet for placing wire.js-created Dijits into the page, and a reference resolver, similar to dijit.byId for referencing Dijits created in the HTML page the dojoType and data-dojo-type HTML attributes.

Options

{
	module: 'wire/dojo/dijit'

	// theme
	// Set the current dijit theme for the page
	// This will load the CSS and set the appropriate theme class on
	// the body element
	theme: 'claro'
}

Dijit Themes

The wire/dojo/dijit plugin can load and activate any of Dijit's builtin themes. Simply set the theme option to the name of the theme.

Example

{
	module: 'wire/dojo/dijit'

	// Set the current dijit theme to claro
	// This will load the CSS and set the appropriate theme class on
	// the body element
	theme: 'claro'
}

Note: wire.js relies on an AMD css! plugin, such as the css! plugin from curl.js, to load css.

Dijit Lifecycle Management

More coming soon

dijit! References

More coming soon

placeAt

More coming soon

Clone this wiki locally