An overview of the _WidgetBase module
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 ...
Get Mastering ArcGIS Server Development with JavaScript 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.