Item logo image for Context Menu Sample

Context Menu Sample

Developer Tools59 users
Item media 1 (screenshot) for Context Menu Sample

Overview

Context menus Sample that shows how to use the context menu API in an app to manage various application context menus, such as…

Context menus Sample that shows how to use the context menu API in an app to manage various application context menus, such as menus that only apply to particular windows, menus that apply to selections or media types, and context menus that work on the app launcher. A single context menu structure is normally global to the entire app, and thus all windows would have the same menu. This sample uses a focus event handler in each window to detect when a window is brought to the foreground. When it is, the contents of the context menu are updated with that window's commands, while leaving the other menus intact. The chrome.contextMenus.onClicked event handler also only handles events that occur in that window. See the source code at https://github.com/GoogleChrome/chrome-app-samples/tree/master/context-menu

Details

  • Version
    4
  • Updated
    March 30, 2015
  • Offered by
    Chrome App Samples
  • Size
    294KiB
  • Languages
    English (United States)
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

Manage extensions and learn how they're being used in your organization
The developer has not provided any information about the collection or usage of your data.

Support

For help with questions, suggestions, or problems, visit the developer's support site

Google apps