GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

5 results across 6 corpora for devtools.panels.ElementsPanel.createSidebarPane().

Dictionary 0

Papers 0

Wikidata 0

Developer library 5

devtools.panels.ElementsPanel

ctor in the browser's devtools. This is called the Page Inspector in Firefox and the Elements panel in Chrome. ## Functions - [`devtools.panels.ElementsPanel.createSidebarPane()`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels/ElementsPanel/createSidebarPane) - : Creates a pane in the inspector's sidebar. ## Events - [`devtools.panels.ElementsPanel.onSelectionChanged`](/docs/Mozilla/Add-ons/WebExtensio

devtools.panels.ElementsPanel.createSidebarPane()

HTML/CSS in a tabbed interface. For example, in Firefox, the sidebar can display the CSS rules for the selected element, or its fonts, or its box model. The `createSidebarPane()` function adds a new pane to the sidebar. For example, the screenshot below shows a new pane titled "My pane", that displays a JSON object: ![A new pane titled "My pane", that displays a JSON object, in the Firefox inspector](inspector-sid

devtools.panels.ExtensionSidebarPane

that displays a JSON object, in the Firefox inspector](inspector-sidebar.png) To create an `ExtensionSidebarPane`, call the [`browser.devtools.panels.elements.createSidebarPane()`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels/ElementsPanel/createSidebarPane) function. ## Functions - [`devtools.panels.ExtensionSidebarPane.setExpression()`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels/Extension

devtools.panels.ElementsPanel.setExpression()

st exp = "$0 && $0.tagName"; const title = "Selected Element tagName"; sidebarPane.setExpression(exp, title); }); } browser.devtools.panels.elements.createSidebarPane("My pane").then(onCreated); ``` ## Browser compatibility > [!NOTE] > This API is based on Chromium's [`chrome.devtools.panels`](https://developer.chrome.com/docs/extensions/reference/api/devtools/panels) API. <!-- // Copyright 2015 The

Firefox 57 (Quantum) for developers

PI/contextualIdentities/ContextualIdentity) - [`devtools.panels`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels) - [`devtools.panels.ElementsPanel.createSidebarPane()`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels/ElementsPanel/createSidebarPane) - [`downloads`](/docs/Mozilla/Add-ons/WebExtensions/API/downloads) - `incognito` option in [`downloads.download()`](/docs/Mozilla/Add-ons/WebExten

JSON results · Services directory