Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 947 Bytes

_Widget.rst

File metadata and controls

28 lines (18 loc) · 947 Bytes

dijit._Widget

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 CSS
  • dijit.hccss <dijit/hccss> - for widgets that have high-contrast mode specific CSS or layout

See Also

  • dijit._WidgetBase <dijit/_WidgetBase>