dijit.Menu
dojo.require("dijit.Menu");
defined in dijit/Menu.js
A context menu you can assign to multiple elements
Usage
function () (view source)

ConstructorsBack to top

Internal function for opening myself when the user does a right-click or something similar

FunctionsBack to top
Defined by dijit._KeyNavContainer
Add a child to our _Container
attach menu to given node
Defined by dijit._Widget, dijit._Templated
Construct the UI for this widget from a template, setting this.domNode.
Defined by dijit._Widget
Connects specified obj/event to specified method of this object and registers for disconnect() on widget destroy. Special event: "ondijitclick" triggers on a click or enter-down or space-up Similar to dojo.connect() but takes three arguments rather than four.
Defined by dijit._KeyNavContainer
Call in postCreate() to attach the keyboard handlers to the container. preKeyCodes: Array Key codes for navigating to the previous child.
Defined by dijit._Widget
Kick off the life-cycle of a widget
Defined by dijit._Widget
Recursively destroy the children of this widget and their descendants.
Defined by dijit._Widget
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.
Defined by dijit._Widget
Destroys the DOM nodes associated with this widget
Defined by dijit._Widget
Disconnects handle created by this.connect. Also removes handle from this widget's list of connects
Defined by dijit._KeyNavContainer
Focus widget. Optionally focus 'node' within widget.
Defined by dijit._KeyNavContainer
Focus the first focusable child in the container.
Defined by dijit._KeyNavContainer
Focus the next widget or focal node (for widgets with multiple focal nodes) within this container.
Defined by dijit._KeyNavContainer
Focus the previous widget or focal node (for widgets with multiple focal nodes) within this container.
Defined by dijit._Widget
Returns all the widgets that contained by this, i.e., all widgets underneath this.containerNode.
Defined by dijit._Widget
Return true if this widget can currently be focused and false if not
Defined by dijit._Widget
Checks the DOM to for the text direction for bi-directional support

Defined by dijit._Widget
stub function. Override or connect to this method to receive notifications for when the widget moves out of focus.
attach point for notification about when the user cancels the current menu
attach point for notification about when a menu item has been executed

Defined by dijit._Widget
stub function. Override or connect to this method to receive notifications for when the widget moves into focus.

user defined function to handle clicks on an item

Called when cursor is over a MenuItem

Callback fires when mouse exits a MenuItem

Open menu relative to the mouse
Defined by dijit._Widget
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.
Defined by dijit._Widget
Defined by dijit._Widget
Set native HTML attributes reflected in the widget, such as readOnly, disabled, and maxLength in TextBox widgets.

Overrides dijit._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.
Defined by dijit._KeyNavContainer
Call in startup() to set child tabindexes to -1

Defined by dijit._Widget
detach menu from given node
Overrides dijit._Widget
stub function. Override to implement custom widget tear-down behavior.
Defined by dijit._Templated
Iterate through the template and attach functions and nodes accordingly.

Defined by dijit._KeyNavContainer

Defined by dijit._Templated
relocate source contents to templated container node this.containerNode must be able to receive children, or exceptions will be thrown
Defined by dijit._KeyNavContainer

Defined by dijit._KeyNavContainer

Returns a reference to the document object inside iframe_el

Returns the window reference of the passed iframe


Overrides dijit._Widget

Overrides dijit._KeyNavContainer
Close all popups that are open and descendants of this menu

Defined by dijit._KeyNavContainer

Defined by dijit._KeyNavContainer

Defined by dijit._Widget

Handle keyboard based menu navigation.

Defined by dijit._KeyNavContainer

Defined by dijit._KeyNavContainer
open the popup to the side of the current menu item

Defined by dijit._KeyNavContainer
Set tabindex="-1" on focusable widgets so that we can focus them programmatically and by clicking. Connect focus and blur handlers.

Defined by dijit._Templated

PropertiesBack to top
Defined by dijit._Widget
A map of attributes and attachpoints -- typically standard HTML attributes -- to set on the widget's dom, at the "domNode" attach point, by default. Other node references can be specified as properties of 'this'
Defined by dijit._Widget
Defined by dijit._Templated
holds child elements. "containerNode" is generally set via a dojoAttachPoint assignment and it designates where children of the src dom node will be placed
if true, right clicking anywhere on the window will cause this context menu to open; if false, must specify targetNodeIds
Defined by dijit._Widget
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".
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget, dijit._Templated
this is our visible representation of the widget! Other DOM Nodes may by assigned to other properties, usually through the template system's dojoAttachPonit syntax, but the domNode property is the canonical "top level" node in widget UI.
Overrides dijit._KeyNavContainer
Defined by dijit._Widget
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.
Defined by dijit._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).
Defined by dijit._Widget
If true, menu will open on left click instead of right click, similiar to a file menu.
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
pointer to menu that displayed me
number of milliseconds before hovering (without clicking) causes the popup to automatically open
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
Array of dom node ids of nodes to attach to. Fill this with nodeIds upon widget creation and it becomes context menu for those nodes.
Defined by dijit._Templated
a node that represents the widget template. Pre-empts both templateString and templatePath.
Defined by dijit._Templated
Path to template (HTML file) for this widget relative to dojo.baseUrl
Overrides dijit._Templated
a string that represents the widget template. Pre-empts the
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Templated
should we parse the template to find widgets that might be declared in markup inside it? false by default.
Defined by dijit._Widget
Defined by dijit._Widget
used to record mouse and keyboard events to determine if a context menu is being opened with the keyboard or the mouse
Defined by dijit._KeyNavContainer
Defined by dijit._Widget
Defined by dijit._Templated
Defined by dijit._Widget
Defined by dijit._Templated