180 likes | 771 Views
Briana Fulfer and Blake Baker. Dojo. Dojo. Dojo is a collection of JavaScript utilities for developer use. Used for desktop and mobile applications. Defining and Requiring modules. Require - used to load modules Define - used to define a module. The functions take two arguments
E N D
Dojo • Dojo is a collection of JavaScript utilities for developer use. • Used for desktop and mobile applications.
Defining and Requiring modules • Require - used to load modules • Define - used to define a module. • The functions take two arguments • a list of module IDs and a callback function
dojo/_base • The dojo/_base directory holds modules with basic functionality such as: • Arrays and Operations. (dojo/_base/arrays) • Language Utilities (dojo/_base/lang) • HTML Utilities (dojo/_base/html) • Deferred Utilities (dojo/_base/Deffered) • Kernel Utilities (dojo/_base/kernel) • Window (dojo/_base/window) • Effects (dojo/_base/fx) and many more..... • Be aware that these features will be phased out for more top level modules in the release of 2.0.
Dojo Core • Ensure that you only require items that you need to use. • Many modules are preloaded and for legacy purposes. • Make sure to use best practices when referencing items even if you can reference through the global scope.
Dijit • Dijit is Dojo’s UI Library. • Widget system layered on top of Dojo. • Dijit is a good place to start as a new user. • “You can build amazing Web 2.0 GUI’s using very little, or no, JavaScript”
References • http://dojotoolkit.org/ • Reference Guide • http://dojotoolkit.org/reference-guide/1.7/