Only private and/or inherited functions are available.
Set or get properties on a widget instance.
Construct the UI for this widget, setting this.domNode. Most
widgets will mixin dijit._Templated, which implements this
method.
connect(obj, event, method)
: _Widget.HandleConnects specified obj/event to specified method of this object
and registers for disconnect() on widget destroy.
Kick off the life-cycle of a widget
Destroy this widget, but not its descendants.
This method will, however, destroy internal widgets such as those used within a template.
Recursively destroy the children of this widget and their
descendants.
Destroy this widget and its 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 is
removed from the manager object.
Destroys the DOM nodes associated with this widget
Disconnects handle created by connect.
Also removes handle from this widget's list of connects.
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.
Returns all the widgets 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.
Return true if this widget can currently be focused
and false if not
Checks the page for text direction
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.
Connect to this function to receive notifications of mouse click events.
Callback if someone tries to close the child, child will be closed if func returns true
Connect to this function to receive notifications of mouse double click events.
Called when the widget becomes "active" because
it or a widget inside of it either has focus, or has recently
been clicked.
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.
Connect to this function to receive notifications of keys being pressed down.
Connect to this function to receive notifications of printable keys being typed.
Connect to this function to receive notifications of keys being released.
Connect to this function to receive notifications of when the mouse button is pressed down.
Connect to this function to receive notifications of when the mouse moves onto this widget.
Connect to this function to receive notifications of when the mouse moves off of this widget.
Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget.
Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget.
Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget.
Connect to this function to receive notifications of when the mouse button is released.
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.
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.
Called after a widget's dom has been setup
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.
Deprecated. Use attr() instead.
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.
Subscribes to the specified topic and calls the specified method
of this object and registers for unsubscribe() on widget destroy.
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.
Stub function. Override to implement custom widget tear-down
behavior.
Unsubscribes handle created by this.subscribe.
Also removes handle from this widget's list of subscriptions
Step during widget creation to copy all widget attributes to the
DOM as per attributeMap and _setXXXAttr functions.
Reflect a widget attribute (title, tabIndex, duration etc.) to
the widget DOM, as specified in attributeMap.
Helper function for Widget.attr().
Caches attribute name values so we don't do the string ops every time.
This is where widgets do processing for when they stop being active,
such as changing CSS classes. See onBlur() for more details.
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".
This is where widgets do processing for when they are active,
such as changing CSS classes. See onFocus() for more details.
Internal method called when this widget is made visible.
See onShow for details.
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
Only private and/or inherited properties are available.
True if user can close (destroy) this child, such as (for example) clicking the X on the tab.
The number of columns this widget should span.
Column of the grid to place the widget.
Designates where children of the source dom node will be placed.
"Children" in this case refers to both dom nodes and widgets.
For example, for myWidget:
<div dojoType=myWidget>
<b> here's a plain dom node
<span dojoType=subWidget>and a widget</span>
<i> and another plain dom node </i>
</div>
containerNode would point to:
<b> here's a plain dom node
<span dojoType=subWidget>and a widget</span>
<i> and another plain dom node </i>
In templated widgets, "containerNode" is set via a
dojoAttachPoint assignment.
containerNode must be defined for any widget that accepts innerHTML
(like ContentPane or BorderContainer or even Button), and conversely
is null for widgets that don't, like TextBox.
Specifies a maximum size (in pixels) for this widget when resized by a splitter
Unsupported by Dijit, but here for completeness. Dijit only supports setting text direction on the
entire document.
Bi-directional support, as defined by the [HTML DIR](http://www.w3.org/TR/html401/struct/dirlang.html#adef-dir)
attribute. Either left-to-right "ltr" or right-to-left "rtl".
This is our visible representation of the widget! Other DOM
Nodes may by assigned to other properties, usually through the
template system's dojoAttachPoint syntax, but the domNode
property is the canonical "top level" node in widget UI.
To remove the drag capability.
Defines a group belonging.
CSS Class specifying icon to use in tab label etc. associated with this pane.
A unique, opaque ID string that can be assigned by users or by the
system. If the developer passes an ID which is known not to be
unique, the specified ID is ignored and the system-generated ID is
used instead.
The label to display for a given widget
Rarely used. Overrides the default Dojo locale used to render this widget,
as defined by the [HTML LANG](http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang) attribute.
Value must be among the list of locales specified during by the Dojo bootstrap,
formatted according to [RFC 3066](http://www.ietf.org/rfc/rfc3066.txt) (like en-us).
"none", "left", "right", "bottom", "top", and "client".
See the LayoutContainer description for details on this parameter.
Specifies a minimum size (in pixels) for this widget when resized by a splitter
List of nodes that correctly handle click events via native browser support,
and don't need dijit's help
"top", "bottom", "leading", "trailing", "left", "right", "center".
See the BorderContainer description for details on this parameter.
Is this child currently selected?
Can be specified at initialization time, but then to change selected child use dijit.layout.StackContainer.selectChild
Display title of pane as label in TabContainer/AccordionContainer, rather than just using
icon specified in iconClass
Minimum size (width or height) of a child of a SplitContainer.
The value is relative to other children's sizeShare properties.
Size (width or height) of a child of a SplitContainer.
The value is relative to other children's sizeShare properties.
For example, if there are two children and each has sizeShare=10, then
each takes up 50% of the available space.
A parameter needed by RadioGroupSlide only. An optional paramter to force
the ContentPane to slide in from a set direction. Defaults
to "random", or specify one of "top", "left", "right", "bottom"
to slideFrom top, left, right, or bottom.
Setting spanLabel to true makes the widget take up both the
label and value cells. Defaults to false.
If true, puts a draggable splitter on this widget to resize when used
inside a border container edge region.
pointer to original dom node
HTML style attributes as cssText string or name/value hash
HTML title attribute.
For form widgets this specifies a tooltip to display when hovering over
the widget (just like the native HTML title attribute).
For TitlePane or for when this widget is a child of a TabContainer, AccorionContainer,
etc., it's used to specify the tab label, accordion pane title, etc.
a css size value (e.g. "100px")
When this widget's title attribute is used to for a tab label, accordion pane title, etc.,
this specifies the tooltip to appear when the mouse is hovered over that text.
Path to a blank 1x1 image.
Used by <img> nodes in templates that really get their image via CSS background-image.