We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

この翻訳は不完全です。英語から この記事を翻訳 してください。


A sidebar is a pane that is displayed at the left-hand or right-hand side of the browser window, next to the web page. The browser provides a UI that enables the user to see the currently available sidebars and to select a sidebar to display. Using the sidebar_action manifest.json key, an extension can define its own sidebar. Using the sidebarAction API described here, an extension can get and set the sidebar's properties.

The sidebarAction API is closely modeled on the browserAction API.

The sidebarAction API is based on Opera's sidebarAction API. However, note that the following are not yet supported: setBadgeText(), getBadgeText(), setBadgeBackgroundColor(), getBadgeBackgroundColor(), onFocus, onBlur.

Pixel data for an image. Must be an ImageData object (for example, from a <canvas> element).


Sets the sidebar's panel.
Gets the sidebar's panel.
Sets the sidebar's title. This will be displayed in any UI provided by the browser to list sidebars, such as a menu.
Gets the sidebar's title.
Sets the sidebar's icon.
Opens the sidebar.
Closes the sidebar.


ChromeEdgeFirefoxFirefox for AndroidOpera
ImageDataType 無し 無し54 無し 有り
close 無し 無し57 無し 無し
getPanel 無し 無し54 無し 有り
getTitle 無し 無し54 無し 有り
isOpen 無し 無し59 無し 無し
open 無し 無し57 無し 無し
setIcon 無し 無し54 無し 有り
setPanel 無し 無し54 無し 有り
setTitle 無し 無し54 無し 有り

Example add-ons


This API is based on Opera's chrome.sidebarAction API.

Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.


このページの貢献者: Uemmra3
最終更新者: Uemmra3,