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.

6 results across 6 corpora for devtools.panels.ExtensionSidebarPane.

Developer library 6

devtools.panels

Panel`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels/ExtensionPanel) - : Represents a devtools panel created by the extension. - [`devtools.panels.ExtensionSidebarPane`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels/ExtensionSidebarPane) - : Represents a pane that an extension has added to the HTML/CSS inspector in the browser's devtools. ## Properties - [`devtools.panels.elements`](/docs/M

devtools.panels.ElementsPanel.createSidebarPane()

rgument, which is a string representing the pane's title. It returns a [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise) that resolves to an [`ExtensionSidebarPane`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels/ExtensionSidebarPane) object representing the new pane. You can use that object to define the pane's content and behavior. ## Syntax ```js-nolint let creating = browser.devtools.p

devtools.panels.ExtensionSidebarPane

The `ExtensionSidebarPane` object represents a pane that an extension has added to the sidebar in the browser's HTML/CSS inspector. ![New pane titled "My pane" 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/createS

devtools.panels.ExtensionSidebarPane.onHidden

Called when the sidebar pane becomes hidden, as a result of the user switching away from it. ## Syntax ```js-nolint browser.devtools.panels.onHidden.addListener(listener) browser.devtools.panels.onHidden.removeListener(listener) browser.devtools.panels.onHidden.hasListener(listener) ``` Events have three functions: - `addListener(listener)` - : Adds a listener to this event. - `removeListener(listener)` - : S

devtools.panels.ExtensionSidebarPane.setObject()

Displays a JSON object in the extension's sidebar pane. The object is displayed as an expandable tree, as in the [JSON viewer](https://firefox-source-docs.mozilla.org/devtools-user/json_viewer/index.html) in Firefox. You can optionally specify a `rootTitle` string: this will be displayed as the title of the tree's root. This is an asynchronous function that returns a [`Promise`](/docs/Web/JavaScript/Reference/Globa

devtools.panels.ExtensionSidebarPane.setPage()

Sets an HTML page to be displayed in the sidebar pane. This is an asynchronous function that returns a [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise). ## Syntax ```js-nolint browser.devtools.panels.setPage( path // string containing relative path to page ) ``` ### Parameters - extensionPageURL - : `string`. The relative path of an HTML page to display within the sidebar. ### Return value

JSON results · Services directory