dijit._Widget was the previous base class for widgets. It has been replaced by dijit._WidgetBase <dijit/_WidgetBase>
.
If you are converting a widget from extending dijit._Widget to extending dijit._WidgetBase <dijit/_WidgetBase>
, you may also want to extend the follow mixins:
dijit._OnDijitClickMixin <dijit/_OnDijitClickMixin>
- for widgets that connect to "ondijitclick" instead of "onclick" (for accessibility)dijit._FocusMixin <dijit/_FocusMixin>
- for widgets that want the onFocus() / onBlur() callback
In addition, you may want to require these modules:
dojo.uacss <dojo/uacss>
- for widgets that have browser specific CSSdijit.hccss <dijit/hccss>
- for widgets that have high-contrast mode specific CSS or layout
dijit._WidgetBase <dijit/_WidgetBase>