.. _quickstart/writingWidgets/lifecycle: TODO: DELETE THIS PAGE, IT'S BEEN ROLLED INTO :ref:`dijit._Widget ` and :ref:`dijit.layout._LayoutWidget `. Widget Lifecycle ================ The lifecycle of a widget decribes the phases of its creation and destruction which you can hook into. It's useful to understand exactly what happens when. Whether you are sub-classing an existing widget, using dojo/method script blocks, or passing in method overrides to the constructor, these are your entry points for making a widget do what you want it to do. Widgets are classes, created with dojo.declare. All widgets inherit from dijit._Widget, and most get the _Templated mixin. That provides you the following extension points (methods) you can override and provide implementation for: - constructor Your constructor method will be called before the parameters are mixed into the widget, and can be used to initialize arrays, etc. - parameters are mixed into the widget instance This is when attributes in the markup (ex: