You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The browser.action API has methods setTitle, setIcon, setBadgeText, and others for configuring the UI of the browser action
The panel dropdown in the sidebar appears to use the icon and short_text from the manifest
Motivation
The icon and title can provide information about the state/applicability of side panel. For example, in a page annotation/commenting extension, the number of results for the current page
Provide affordance for custom branding
Proposed API
Both browser.action and browser.sidePanel have affordances for setting different options per tab. The API for configuring the side panel entry should also support varying options by tab
I see two potential approaches:
Expose a setTitle/setIcon/setBadgeText/setBadgetTextColor/setBadgeBackgroundColor method on browser.sidePanel
Add an optional properties on PanelOptionstitle?: string, icon?: imageData | object, badgeText?: string, etc.
Depending on which approach vendors prefer, I can help clarify the detailed API
The text was updated successfully, but these errors were encountered:
Context
browser.action
API has methodssetTitle
,setIcon
,setBadgeText
, and others for configuring the UI of the browser actionshort_text
from the manifestMotivation
Proposed API
browser.action
andbrowser.sidePanel
have affordances for setting different options per tab. The API for configuring the side panel entry should also support varying options by tabbrowser.sidePanel
title?: string
,icon?: imageData | object
,badgeText?: string
, etc.The text was updated successfully, but these errors were encountered: