The _WidgetBase
module provides the base class necessary to create a dijit
module. In itself, it's not a widget, but you can easily build a widget on top of it. The widget created with the _WidgetBase
module is bound to an element in the HTML DOM, which can be referred to with its domNode
attribute.
The _WidgetBase
module also introduces a lifecycle to the widget. The lifecycle refers to how the widget is created, built up, used, and torn down. This module loads the following methods and events that occur within the lifecycle of the widget:
constructor
: This method is called on widget creation. There is no access to the template, but values can be assigned and arrays can be accessed.parameters mixed into widget instance
: The parameters you passed into the object constructor, such as button labels, are added to the widget to overwrite any pre-existing values.postMixinProperties
: This is a step prior to rendering the widget HTML. If you need to change...