Search completed in 1.14 seconds.
5 results for "contextmenus":
Menu - Archive of obsolete content
Archive › Mozilla › Jetpack › UI › Menu
from other menus. Unlike the Tools menu, which is always in the same place and whose items basically remain constant, context menus don't really exist until they pop up in a certain context. For example, the items of the page's context menu change depending on what the user clicks: images have a context menu, links have a context menu, and so on. Does the page have a single context menu or many? ContextMenuSet Jetpack's solution is to expose ContextMenuSet objects. A ContextMenuSet represents a set of context menus. jetpack.menu.context.page is the set of context menus that appear on the page: the image menu, link menu, and so on. ContextMenuSet defines many of the same methods that jetpack.Menu does. Features can use these methods to modify all the menus in a set at once. They are: add(items) c...
...pear on the page: the image menu, link menu, and so on. ContextMenuSet defines many of the same methods that jetpack.Menu does. Features can use these methods to modify all the menus in a set at once. They are: add(items) clear() insertBefore(newItems, target) remove(target) replace(target, newItems) reset() set(items) The following jetpack.Menu properties can also be defined on a ContextMenuSet: beforeHide beforeShow Note that a jetpack.Menu object is passed to beforeHide and beforeShow, since they are called during a context menu's invocation. They may then modify the menu. Individual menus are drawn from the set using on(): on(selector) Returns a new ContextMenuSet whose context menus are those that arise from nodes that match the given CSS selector(s). The selector must be a...
...and all elements contained in links, use jetpack.menu.context.page.on("a[href], a[href] *"). A future version of Jetpack may change this behavior; see bug 527924. What do you think? Leave a comment on that bug or send a message to the mailing list. Parameters selector One or more CSS selectors. A string. Examples: "a[href]", "a[href] > img", "a[href], img". Return value A new ContextMenuSet object. jetpack.menu.context The feature's context menu. All of the feature's context menus are exposed through jetpack.menu.context, including slidebar, panel, toolbar, and status bar item context menus. A ContextMenuSet object. jetpack.menu.context.browser The chrome context menu. This is the context menu that appears when right-clicking on an element in Firefox's interface, such as a bookmar...
...And 2 more matches
Index - Archive of obsolete content
Archive › Index
1324 unpinTab XUL, XUL Attribute, XUL Reference No summary! 1325 Namespaces Add-ons, Extensions No summary! 1326 Node This is a scriptable interface corresponding to the nsIDOMNode XPCOM interface. 1327 Other Resources XUL No summary! 1328 Popup Guide XUL, XUL Popup Guide No summary! 1329 ContextMenus XUL, XUL Popup Guide A context menu is a menu where the items on the menu are specific to the context in which the menu was opened. A typical usage is for the user to right-click on an element to display a menu of commands pertaining to what was clicked on. 1330 Extensions XUL, XUL Popup Guide The main menu bar in Firefox has the id 'main-menubar'. To add a new menu...
Index of archived content - Archive of obsolete content
Archive › Index of archived content
tabs HelperApps.jsm Home.jsm banner panels HomeProvider.jsm HomeStorage NativeWindow contextmenus doorhanger menu toast Notifications.jsm PageActions.jsm Prompt.jsm RuntimePermissions.jsm Snackbars.jsm Sound.jsm Tab Addons developer guide Code snippets Crea...
Index - Archive of obsolete content
Archive › Mozilla › XUL › Index
593 unpinTab XUL, XUL Attribute, XUL Reference No summary! 594 Namespaces Add-ons, Extensions No summary! 595 Node This is a scriptable interface corresponding to the nsIDOMNode XPCOM interface. 596 Other Resources XUL No summary! 597 Popup Guide XUL, XUL Popup Guide No summary! 598 ContextMenus XUL, XUL Popup Guide A context menu is a menu where the items on the menu are specific to the context in which the menu was opened. A typical usage is for the user to right-click on an element to display a menu of commands pertaining to what was clicked on. 599 Extensions XUL, XUL Popup Guide The main menu bar in Firefox has the id 'main-menubar'. To add a new menu ...