Login Register Help
API Documentation
Choose a stylesheet:

Constructordijit._Widget

Base class for all dijit widgets.

Jump to PropertiesJump to FunctionsJump to ConstructorsNamespacesBack to top

Jump to PropertiesJump to FunctionsJump to NamespacesConstructorsBack to top

Construct the UI for this widget, setting this.domNode. Most widgets will mixin dijit._Templated, which implements this method.
Kick off the life-cycle of a widget
Called after a widget's children, and other widgets on the page, have been created. Provides an opportunity to manipulate any children before they are displayed. This is useful for composite widgets that need to control or layout sub-widgets. Many layout widgets can use this as a wiring phase.
Helper function for Widget.attr(). Caches attribute name values so we don't do the string ops every time.
Custom setter for the CSS "class" attribute
Sets the style attribut of the widget according to value, which is either a hash like {height: "5px", width: "3px"} or a plain string

Jump to PropertiesJump to ConstructorsJump to NamespacesFunctionsBack to top

Functionattr(name: String|Object, value: Object?)
Overrides
Set or get properties on a widget instance.
Functionconnect(obj: Object|null, event: String|Function, method: String|Function)
Overrides
Connects specified obj/event to specified method of this object and registers for disconnect() on widget destroy.
Functiondestroy(preserveDom: Boolean)
Overrides
Destroy this widget, but not its descendants. Will, however, destroy internal widgets such as those used within a template.
Overrides
Recursively destroy the children of this widget and their descendants.
FunctiondestroyRecursive(preserveDom: Boolean?)
Overrides
Destroy this widget and it's descendants. This is the generic "destructor" function that all widget users should call to cleanly discard with a widget. Once a widget is destroyed, it's removed from the manager object.
FunctiondestroyRendering(preserveDom: Boolean?)
Overrides
Destroys the DOM nodes associated with this widget
Functiondisconnect(handles: Object)
Overrides
Disconnects handle created by this.connect. Also removes handle from this widget's list of connects
Overrides
Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. Does not return nested widgets, nor widgets that are part of this widget's template.
Overrides
Returns all the widgets that contained by this, i.e., all widgets underneath this.containerNode. This method should generally be avoided as it returns widgets declared in templates, which are supposed to be internal/hidden, but it's left here for back-compat reasons.
Overrides
Return true if this widget can currently be focused and false if not
Overrides
Checks the page for text direction
Overrides
Called when the widget stops being "active" because focus moved to something outside of it, or the user clicked somewhere outside of it, or the widget was hidden.
FunctiononClick(event: mouse)
Overrides
Connect to this function to receive notifications of mouse click events.
Overrides
Callback if someone tries to close the child, child will be closed if func returns true
FunctiononDblClick(event: mouse)
Overrides
Connect to this function to receive notifications of mouse double click events.
Overrides
Called when the widget becomes "active" because it or a widget inside of it either has focus, or has recently been clicked.
Overrides
Called when another widget becomes the selected pane in a dijit.layout.TabContainer, dijit.layout.StackContainer, dijit.layout.AccordionContainer, etc. Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane.
FunctiononKeyDown(event: key)
Overrides
Connect to this function to receive notifications of keys being pressed down.
FunctiononKeyPress(event: key)
Overrides
Connect to this function to receive notifications of printable keys being typed.
FunctiononKeyUp(event: key)
Overrides
Connect to this function to receive notifications of keys being released.
FunctiononMouseDown(event: mouse)
Overrides
Connect to this function to receive notifications of when the mouse button is pressed down.
FunctiononMouseEnter(event: mouse)
Overrides
Connect to this function to receive notifications of when the mouse moves onto this widget.
FunctiononMouseLeave(event: mouse)
Overrides
Connect to this function to receive notifications of when the mouse moves off of this widget.
FunctiononMouseMove(event: mouse)
Overrides
Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget.
FunctiononMouseOut(event: mouse)
Overrides
Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget.
FunctiononMouseOver(event: mouse)
Overrides
Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget.
FunctiononMouseUp(event: mouse)
Overrides
Connect to this function to receive notifications of when the mouse button is released.
Overrides
Called when this widget becomes the selected pane in a dijit.layout.TabContainer, dijit.layout.StackContainer, dijit.layout.AccordionContainer, etc. Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane.
FunctionplaceAt(reference: String|DomNode|_Widget, position: String|Integer?)
Overrides
Place this widget's domNode reference somewhere in the DOM based on standard dojo.place conventions, or passing a Widget reference that contains and addChild member.
Overrides
Called after a widget's dom has been setup
Overrides
Called after the parameters to the widget have been read-in, but before the widget template is instantiated. Especially useful to set properties that are referenced in the widget template.
FunctionsetAttribute(attr: String, value: anything)
Overrides
Deprecated. Use attr() instead.
Overrides
Returns a string that represents the widget. When a widget is cast to a string, this method will be used to generate the output. Currently, it does not implement any sort of reversable serialization.
Overrides
Stub function. Override to implement custom widget tear-down behavior.
Overrides
Step during widget creation to copy all widget attributes to the DOM as per attributeMap and _setXXXAttr functions.
Function_attrToDom(attr: String, value: String)
Overrides
Reflect a widget attribute (title, tabIndex, duration etc.) to the widget DOM, as specified in attributeMap.
Overrides
This is where widgets do processing for when they stop being active, such as changing CSS classes. See onBlur() for more details.
Overrides
Called when someone connects to one of my handlers. "Turn on" that handler if it isn't active yet. This is also called for every single initialization parameter so need to do nothing for parameters like "id".
Overrides
This is where widgets do processing for when they are active, such as changing CSS classes. See onFocus() for more details.
Overrides
Internal method called when this widget is made visible. See onShow for details.

Jump to FunctionsJump to ConstructorsJump to NamespacesPropertiesBack to top

Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Overrides