Dojo¶
Status: | Draft |
---|---|
Version: | 1.0 |
Available: | since version 0.9 |
Dojo is divided into two parts: dojo.js, and the rest of Dojo Core. Typically, if a function or Class exists within the dojo namespace directly (eg: dojo.require(), dojo.addOnLoad()) it is provided directly by dojo.js. If the function or Class exists beneath the dojo namespace (eg: dojo.dnd.Mover), you will need to require the appropriate module (eg: dojo.require("dojo.dnd.Mover");)
These pages cover both cases, and indicate how they are provided.
dojo.js¶
Dojo Base is the functionality you get by just including dojo.js or dojo.xd.js in your page.
-
-
Dojo’s Bootstrap
djConfig
Configuring Dojo with djConfig
-
Call functions after the DOM has finished loading and widgets declared in markup have been instantiated
-
Call functions when the page unloads
-
Call functions when window.onunload fires
-
Modifying DOM node attributes
-
Log a debug message to indicate that a behavior has been deprecated
-
Determine if an object supports a given method
-
Get a property from a dot-separated string, such as “A.B.C”
-
Alias for the global scope
-
Multiple inheritance
-
Place DOM nodes relative to others
-
Maps module name to a path
-
Loads a Javascript module from the appropriate URI
-
Set a property from a dot-separated string, such as “A.B.C”
-
The current version number of Dojo
-
Signal fired by impending window destruction
dojo._base.array
Array utilities. Details on dojo.every, dojo.filter, dojo.forEach, dojo.indexOf, dojo.lastIndexOf, dojo.map, and dojo.some.
-
Invokes a callback function for every item in array
-
Applies a callback to each element of arr and returns an Array with the results
-
-
Functions for setting Colors
-
Functions for connecting methods to events and to subscribe and publish events
-
Connects events to methods
-
Disconnects methods from linked topics
-
Linked a listener to a named topic
-
Remove a topic listener
-
Publish an event to all subscribers of a topic
-
Ensure that everytime an event is called, a message is published on the topic.
-
-
Defining Classes
-
Creates a constructor using a compact notation for inheritance and prototype extension
-
-
Managing Callbacks
-
Communication between threads
-
-
DOM Events
-
Dojo animation effects
-
A very useful method for animating CSS properties
-
-
Basic DOM handling functions
-
Select a DOM node by ‘id’
-
A getter/setter for styles on a DOM node
-
Getter for the coordinates (relative to parent and absolute) of a dom node.
-
Getter/setter for the margin-box of node
-
Getter/setter for the content-box of node
-
-
JSON helpers
-
Parses a JSON string to return a JavaScript object
-
Returns a JSON serialization of an object
-
-
Support for Polymorphism
-
Function that generates a wrapper function that ensures a function that will only ever execute in a defined scope.
-
Checks if the parameter is a String
-
Checks if the parameter is an Array
-
Checks if the parameter is a Function
-
Checks if the parameter is an Object
-
Checks if the parameter is like an Array
-
Checks if the parameter is a built-in function
-
-
Syntactic sugar for chaining, common iteration operations, animation, and node manipulation
-
A class to handle a list of DOM nodes
-
-
A relatively full-featured CSS3 query library
-
The swiss army knife of DOM node manipulation in Dojo
-
-
Functions for dealing with the document-wide DOM and context related stuff
-
Alias for the current document
-
Return the body element of the document
-
Changes the behavior of many core Dojo functions that deal with namespace and DOM lookup
-
Call callback with globalObject as dojo.global and globalObject.document as dojo.doc
-
Call callback with documentObject as dojo.doc
-
-
AJAX I/O transports and utility methods
-
Dojo Core¶
dojo.AdapterRegistry
A registry to make contextual calling/searching easier
-
Browser history management resources (Back button functionality)
-
Utility for unobtrusive/progressive event binding, DOM traversal, and manipulation
dojo.cldr
A Common Locale Data Repository (CLDR) implementation
dojo.colors
CSS color manipulation functions
-
Simple HTTP cookie manipulation
dojo.currency
Localized formatting and parsing routines for currency data
-
A uniform data access layer
-
Date manipulation utilities
-
Event handling for a group of Deferred objects
-
Drag and Drop
-
Effects library on top of Base animations
dojo.gears
Google Gears
-
Inserting contents in HTML nodes
dojo.i18n
Utility classes to enable loading of resources for internationalization
dojo.io
Additional AJAX I/O transports
-
Sends an AJAX I/O call using an IFrame
-
Sends a JSONP request using a script tag
-
dojo.jaxer
-
Adds dojo.fx animation support to dojo.query()
dojo.NodeList-html
Adds a chainable html method to dojo.query()
-
Localized formatting and parsing methods for number data
-
The Dom/Widget parsing package
dojo.regexp
Regular expressions and Builder resources
dojo.robot
experimental module for DOH users
dojo.robotx
experimental module for DOH users
-
Communicate via Remote Procedure Calls (RPC) with Backend Servers
-
Generic JSONP service
-
JSON RPC service
-
RPC service class
-
dojo.string
String utilities for Dojo