From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../webextensions/api/sidebaraction/index.html | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 files/ja/mozilla/add-ons/webextensions/api/sidebaraction/index.html (limited to 'files/ja/mozilla/add-ons/webextensions/api/sidebaraction') diff --git a/files/ja/mozilla/add-ons/webextensions/api/sidebaraction/index.html b/files/ja/mozilla/add-ons/webextensions/api/sidebaraction/index.html new file mode 100644 index 0000000000..90c3d8ec73 --- /dev/null +++ b/files/ja/mozilla/add-ons/webextensions/api/sidebaraction/index.html @@ -0,0 +1,98 @@ +--- +title: sidebarAction +slug: Mozilla/Add-ons/WebExtensions/API/sidebarAction +tags: + - API + - Extensions + - Non-standard + - Reference + - Sidebar + - WebExtensions + - sidebarAction +translation_of: Mozilla/Add-ons/WebExtensions/API/sidebarAction +--- +
{{AddonSidebar}}
+ +

拡張機能のサイドバーのプロパティを取得、設定します。

+ +

サイドバー はブラウザーウィンドウのウェブページの隣の、右側か左側にあるペインです。ブラウザーはユーザーが利用できるサイドバーを見て、表示するサイドバーを選択できる UI を提供します。manifest.json の sidebar_action キーを使って、拡張機能は自身のサイドバーを定義できます。ここで述べる sidebarAction API を使って、拡張機能はサイドバーのプロパティを設定、取得できます。

+ +

sidebarAction API は {{WebExtAPIRef("browserAction")}} API と緊密にモデリングされています。

+ +

sidebarAction API は Opera の sidebarAction API を元にしていますが、次のものはサポートされていません: setBadgeText(), getBadgeText(), setBadgeBackgroundColor(), getBadgeBackgroundColor(), onFocus, onBlur.

+ +

+ +
+
{{WebExtAPIRef("sidebarAction.ImageDataType")}}
+
画像のピクセルデータ。ImageData オブジェクト (例えば、{{htmlelement("canvas")}} 要素からのもの)でなければならない。
+
+ +

関数

+ +
+
{{WebExtAPIRef("sidebarAction.setPanel()")}}
+
サイドバーのバネルを設定します。
+
{{WebExtAPIRef("sidebarAction.getPanel()")}}
+
サイドバーのバネルを取得します。
+
{{WebExtAPIRef("sidebarAction.setTitle()")}}
+
サイドバーのタイトルを設定します。これはブラウザーがサイドバーを一覧するあらゆる UI、例えばメニューに表示されます。
+
{{WebExtAPIRef("sidebarAction.getTitle()")}}
+
サイドバーのタイトルを取得します。
+
{{WebExtAPIRef("sidebarAction.setIcon()")}}
+
サイドバーのアイコンを設定します。
+
{{WebExtAPIRef("sidebarAction.open()")}}
+
サイドバーを開きます。
+
{{WebExtAPIRef("sidebarAction.close()")}}
+
サイドバーを閉じます。
+
{{WebExtAPIRef("sidebarAction.isOpen()")}}
+
サイドバーが開いているか否かをチェックします。
+
+ +

ブラウザー実装状況

+ +

{{Compat("webextensions.api.sidebarAction")}}

+ +

add-ons の例

+ + + +
Acknowledgements + +

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.

+
+ + -- cgit v1.2.3-54-g00ecf