Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Encapsulation > Widget Lifecycle

Widget Lifecycle

As you’ll soon see with working code examples, virtually all Dojo widgets that are displayed on screen inherit from _Widget and _Templated, which are both foundational Dijit classes. _Widget provides the prototypical ancestor, while _Templated is a mixin ancestor that overrides an important method, buildRendering, that provides your widget with the abilities to use a template. Additionally, _Widget and _Templated supply stub methods that define key decision points along the widget initialization process; you’ll almost always leverage some, and often all, of these method stubs to your advantage. We’ll look at this in depth shortly.

Lifecycle Methods and Properties


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint