Summary
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
_Widgetprovides with stub methods, including the order they execute and the stubs they provideUnderstand how
_Templatedacts as a mixin ancestor for_Widgetand provides supplemental functionality for adding template support to dijitsUnderstand the differences and trade-offs between using
templatePathandtemplateStringin 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
onmouseoverin your dijitsBe able to use
Declarationto rapidly prototype in markup
A discussion of form widgets is next.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access