From 50fe8517954371c19d0c042c616887d24c17e167 Mon Sep 17 00:00:00 2001 From: Shreya Ghosh <72400676+shreya024@users.noreply.github.com> Date: Fri, 5 May 2023 00:57:01 +0530 Subject: [PATCH] Action API Readme Added (#884) * action API readme added * #798 action api documentation added * Delete alarms.md --- api-samples/action/action.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 api-samples/action/action.md diff --git a/api-samples/action/action.md b/api-samples/action/action.md new file mode 100644 index 0000000000..9e8be9b36f --- /dev/null +++ b/api-samples/action/action.md @@ -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')