Login Register Help
API Documentation
Choose a stylesheet:

dijit

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

 

NamespacesBack to top

These functions are used to repetitively call a user specified callback method when a specific key or mouse click over a specific DOM node is held down for a specific amount of time. Only 1 such event is allowed to occur on the browser page at 1 time.

ConstructorsBack to top

dijit.CheckedMenuItem(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.ColorPalette(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.Declaration(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.Dialog(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.DialogUnderlay(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.Editor(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.InlineEditBox(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.Menu(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.MenuItem(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.MenuSeparator(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.PopupMenuItem(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.ProgressBar(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.TitlePane(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.Toolbar(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.ToolbarSeparator(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.Tooltip(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.TooltipDialog(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit.Tree(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit._Calendar(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit._InlineEditor(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit._MasterTooltip(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit._TimePicker(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.
dijit._TreeNode(params: Object?, srcNodeRef: DomNode|String)
kicks off widget instantiation, see create() for details.

FunctionsBack to top

dijit.byId(id: String|Widget)
Returns a widget by its id, or if passed a widget, no-op (like dojo.byId())
dijit.byNode(node: DOMNode)
Returns the widget as referenced by node
dijit.focus(handle: Object)
Sets the focused node and the selection according to argument. To set focus to an iframe's content, pass in the iframe itself.
Retrieves a bookmark that can be used with moveToBookmark to return to the same range
Get window object associated with document doc
Returns the widget whose dom tree contains node or null if the node is not contained within the dom tree of any widget
dijit.getFirstInTabbingOrder(root: String|DOMNode)
Finds the descendant of the specified root node that is first in the tabbing order
dijit.getFocus(menu: Widget?, openedForWindow: Window?)
Returns the current focus and selection. Called when a popup appears (either a top level menu or a dialog), or when a toolbar/menubar receives focus
dijit.getLastInTabbingOrder(root: String|DOMNode)
Finds the descendant of the specified root node that is last in the tabbing order
dijit.getUniqueId(widgetType: String)
dijit.getWaiRole(elem: Element)
Gets the non-XHTML role for an element (which should be a wai role).
dijit.getWaiState(elem: Element, state: String)
Gets the value of a state on an element.
dijit.hasWaiRole(elem: Element, role: String)
Determines if an element has a particular non-XHTML role.
dijit.hasWaiState(elem: Element, state: String)
Determines if an element has a given state.
dijit.hideTooltip(aroundNode)
hide the tooltip
tests whether the current selection is empty
dijit.isTabNavigable(elem: Element)
Tests if an element is tab-navigable
dijit.moveToBookmark(bookmark: Object)
Moves current selection to a bookmark
dijit.placeOnScreen(node: DomNode, pos: dijit.__Position, corners: String[], tryOnly: Boolean?)
Positions one of the node's corners at specified position such that node is fully visible in viewport.
dijit.placeOnScreenAroundElement(node: DomNode, aroundElement: Object, aroundCorners: Object, layoutNode: Function)
Like dijit.placeOnScreenAroundNode(), except it accepts an arbitrary object for the "around" argument and finds a proper processor to place a node.
dijit.placeOnScreenAroundNode(node: DomNode, aroundNode: DomNode, aroundCorners: Object, layoutNode: Function?)
Position node adjacent or kitty-corner to aroundNode such that it's fully visible in viewport.
dijit.placeOnScreenAroundRectangle(node: DomNode, aroundRect: dijit.__Rectangle, aroundCorners: Object, layoutNode: Function)
Like dijit.placeOnScreenAroundNode(), except that the "around" parameter is an arbitrary rectangle on the screen (x, y, width, height) instead of a dom node.
dijit.registerWin(targetWindow: Window?)
Registers listeners on the specified window (either the main window or an iframe) to detect when the user has clicked somewhere. Anyone that creates an iframe should call this function.
dijit.removeWaiRole(elem: Element, role: String)
Removes the specified non-XHTML role from an element. removes role attribute if no specific role provided (for backwards compat.)
dijit.removeWaiState(elem: Element, state: String)
Removes a state from an element.
dijit.scrollIntoView(node: DomNode)
dijit.selectInputText(element: DomNode, start: Number?, stop: Number?)
Select text in the input element argument, from start (default 0), to stop (default end).
dijit.setWaiRole(elem: Element, role: String)
Sets the role on an element.
dijit.setWaiState(elem: Element, state: String, value: String)
Sets a state on an element.
dijit.showTooltip(innerHTML: String, aroundNode: DomNode, position: String[]?)
Display tooltip w/specified contents in specified position. See description of dijit.Tooltip.defaultPosition for details on position parameter. If position is not specified then dijit.Tooltip.defaultPosition is used.
dijit._getTabNavigable(root: DOMNode)
Finds the following descendants of the specified root node: the first tab-navigable element in document order without a tabindex or with tabindex="0" the last tab-navigable element in document order without a tabindex or with tabindex="0" the first element in document order with the lowest positive tabindex value the last element in document order with the highest positive tabindex value
dijit._isElementShown(elem: Element)
dijit._onBlurNode(node: DomNode)
Called when focus leaves a node. Usually ignored, _unless_ it *isn't* follwed by touching another node, which indicates that we tabbed off the last field on the page, in which case every widget is marked inactive
dijit._onFocusNode(node: DomNode)
dijit._onTouchNode(node: DomNode)
Callback when node is focused or mouse-downed
dijit._place(node: DomNode, choices: Array, layoutNode: Function)
Given a list of spots to put node, put it at the first spot where it fits, of if it doesn't fit anywhere then the place with the least overflow
dijit._placeOnScreenAroundRect(node: DomNode, x: Number, y: Number, width: Number, height: Number, aroundCorners: Object, layoutNode: Function)
Like dijit.placeOnScreenAroundNode(), except it accepts coordinates of a rectangle to place node adjacent to.
dijit._setStack(newStack)

PropertiesBack to top

Home of the official dijit demo code
A roll-up for common dijit methods
A rollup that includes every dijit. You probably don't need this.
A list of widgets on a page.