Proposal: New PanelBehavior
for sidePanel openPanelOnContextMenuClick
#392
Labels
proposal
Proposal for a change or new feature
When exploring Chrome's new sidePanel api I wish it supported the use case of opening the panel programmatically through a context menu. Imagine a dictionary extension that could open the panel when you highlight a word and select a context menu item.
Here is a naïve example of what the api could look like.
The new PanelBehavior could be called
openPanelOnContextMenuClick
that is an object with theid
from the context menu. I named itmenuItemId
as this maps to what it is called in the callback forcontextMenus.onClicked
. Optionally you could add thepath
to the desired panel if multiple were defined.The text was updated successfully, but these errors were encountered: