mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-04-12 06:09:05 +07:00
* Added Basic contextMenus sample * Updated license header * Update sample.js * Update api-samples/contextMenus/basic/sample.js Co-authored-by: Oliver Dunk <oliverdunk@google.com> * Update api-samples/contextMenus/basic/sample.js Co-authored-by: Oliver Dunk <oliverdunk@google.com> * Update sample.js * Update sample.js * Create README.md * Update api-samples/contextMenus/basic/README.md Co-authored-by: Oliver Dunk <oliverdunk@google.com> --------- Co-authored-by: Oliver Dunk <oliverdunk@google.com>
12 lines
477 B
Markdown
12 lines
477 B
Markdown
# chrome.contextMenus
|
|
|
|
A sample extension demonstrating use of the chrome.contextMenus API.
|
|
|
|
## Overview
|
|
|
|
In this sample the chrome.contextMenus API is used to create menu items, listen for different context menu types being clicked, and run code based on what the user has selected.
|
|
|
|
## Implementation Notes
|
|
|
|
Different console readouts are made when context menu items are clicked. This can be quickly adapted to use new functions or API calls for more advaced functionality.
|