After reading this chapter, you should:
Be able to explain how dijits encapsulate the HTML, CSS, and JavaScript into a standalone, portable unit of code
Understand the key lifecycle events that
_Widget
provides with stub methods, including the order they execute and the stubs they provideUnderstand how
_Templated
acts as a mixin ancestor for_Widget
and provides supplemental functionality for adding template support to dijitsUnderstand the differences and trade-offs between using
templatePath
andtemplateString
in templated dijitsBe able to successfully manipulate a dijit's template before it is displayed on screen
Be able to pass in parameters to dijits through their templates
Be able to programmatically create a widget and place it into the page
Know how to add support for DOM events such as
onmouseover
in your dijitsBe able to use
Declaration
to rapidly prototype in markup
A discussion of form widgets is next.
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.