Skip to content

Commit

Permalink
Action API Readme Added (GoogleChrome#884)
Browse files Browse the repository at this point in the history
* action API readme added

* GoogleChrome#798 action api documentation added

* Delete alarms.md
  • Loading branch information
shreya024 authored and 2qg4svr committed Jun 3, 2023
1 parent dc3745a commit e2b8bcd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions api-samples/action/action.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Action

This sample demonstrates the use of Action API which changes the badge text,icon,hover text or popup page depending on the user's choice or action.

[chrome.action_API_Link]('https://developer.chrome.com/docs/extensions/reference/action/')

## Overview

This sample demonstrates the Action API by allowing the user to perform the below actions:

- Toggle Enabled State : to enable or disable the extensions' action button in Chrome's toolbar and menu.
- Change Popup Page : to change the popup page by entering a new string or url.
- Badge Text : to insert a text overlay with a solid background color.
- Icon Image : to change the action button's icon.
- Hover Text : it is visible when mousing over the extension's icon.

## Implementation Notes

The user can set values to implement above functionalities from [here]('../demo/index.html')

0 comments on commit e2b8bcd

Please sign in to comment.