Jx.Menu.Context

Extends: Jx.Menu

A Jx.Menu that has no button but can be opened at a specific browser location to implement context menus (for instance).

Example

Events

TODOadd open/close events?

License

Copyright © 2008, DM Solutions Group Inc.

This file is licensed under an MIT style license

Summary
Jx.Menu.ContextExtends: Jx.Menu
Constructor
Jx.ContextMenucreate a new context menu
Functions
showShow the context menu at the location of the mouse click

Constructor

Jx.ContextMenu

create a new context menu

Parameters

id{HTMLElement} element or id to make this the context menu for.  The menu hooks the oncontextmenu event of the element and shows itself at the mouse position where the right-click happened.

Functions

show

show : function(e)

Show the context menu at the location of the mouse click

Parameters

e{Event} the mouse event
show : function(e)
Show the context menu at the location of the mouse click
Extends: Object