Login Register Help
API Documentation
Choose a stylesheet:

Constructordijit._Widget.create

dojo.require("dijit._Widget");
defined in dijit/_Widget.js

To understand the process by which widgets are instantiated, it is critical to understand what other methods create calls and which of them you’ll want to override. Of course, adventurous developers could override create entirely, but this should only be done as a last resort.

Below is a list of the methods that are called, in the order they are fired, along with notes about what they do and if/when you should over-ride them in your widget:

  • postMixInProperties:
    • a stub function that you can over-ride to modify variables that may have been naively assigned by mixInProperties
  • widget is added to manager object here
  • buildRendering:
    • Subclasses use this method to handle all UI initialization Sets this.domNode. Templated widgets do this automatically and otherwise it just uses the source dom node.
  • postCreate:
    • a stub function that you can over-ride to modify take actions once the widget has been placed in the UI

PropertiesBack to top

Defined by
Defined by
of initialization parameters for widget, including scalar values (like title, duration etc.) and functions, typically callbacks like onClick.
Defined by
a srcNodeRef (dom node) is specified: - use srcNodeRef.innerHTML as my contents - if this is a behavioral widget then apply behavior to that srcNodeRef - otherwise, replace srcNodeRef with my generated DOM tree
Defined by
Defined by
Defined by