sidebarAction
拡張機能のサイドバーのプロパティを取得、設定します。
サイドバー (en-US) はブラウザーウィンドウのウェブページの隣の、右側か左側にあるペインです。ブラウザーはユーザーが利用できるサイドバーを見て、表示するサイドバーを選択できる UI を提供します。manifest.json の sidebar_action キーを使って、拡張機能は自身のサイドバーを定義できます。ここで述べる sidebarAction API を使って、拡張機能はサイドバーのプロパティを設定、取得できます。
sidebarAction API は browserAction API と緊密にモデリングされています。
sidebarAction API は Opera の sidebarAction API を元にしていますが、次のものはサポートされていません: setBadgeText(), getBadgeText(), setBadgeBackgroundColor(), getBadgeBackgroundColor(), onFocus, onBlur.
型
関数
-
サイドバーのバネルを設定します。
-
サイドバーのバネルを取得します。
-
サイドバーのタイトルを設定します。これはブラウザーがサイドバーを一覧するあらゆる UI、例えばメニューに表示されます。
-
サイドバーのタイトルを取得します。
-
サイドバーのアイコンを設定します。
-
サイドバーを開きます。
-
サイドバーを閉じます。
-
サイドバーが開いているか否かをチェックします。
ブラウザーの互換性
BCD tables only load in the browser
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.