After reading this chapter, you should:
Understand Base's general feature set
Be able to configure
djConfig
to register module paths and be aware of the various other options you can pass into this structure to configure the bootstrap processUnderstand how to use
dojo.addOnLoad
anddojo.addOnUnload
functions and be aware of howdojo.addOnLoad
can protect you from creating race conditions in your codeBe able to construct and namespace your own modules with
dojo.provide
anddojo.require
Understand how (and when) to use the
map
,filter
, andforEach
functionsKnow the difference between and be able to effectively use
mixin
andextend
Effectively use Dojo's utilities for manipulating style with
hasClass
,removeClass
,addClass
, andtoggleClass
Understand the basics of the CSS box model and be able to use functions like
coords
andmarginBox
to manipulate the placement of DOM nodesBe aware of Base's
Array
processing utilitiesBe able to wire up arbitrary connections of
Object
and DOM eventsBe able to manage cookies
Be able to use Core's facilities for managing the back button for a single page app
Next, we'll take a look at event listeners and pub/sub communication.
Get Dojo: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.