GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

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

12 results across 6 corpora for extension.ViewType.

Papers 6

Developer library 6

extension

Utilities related to your extension. Get URLs to resources packages with your extension. Get the [`Window`](/docs/Web/API/Window) object for your extension's pages. Get the values for various settings. > [!NOTE] > **The messaging APIs in this module are deprecated** in favor of the equivalent APIs in the [`runtime`](/docs/Mozilla/Add-ons/WebExtensions/API/runtime) module. ## Types - extension.ViewType - : The ty

extension.ViewType

The type of extension view. ## Type Values of this type are strings. Possible values are: `"tab"`, `"popup"`, `"sidebar"`. ## Browser compatibility > [!NOTE] > This API is based on Chromium's [`chrome.extension`](https://developer.chrome.com/docs/extensions/reference/api/extension#type-ViewType) API. This documentation is derived from [`extension.json`](https://chromium.googlesource.com/chromium/src/+/master/

extension.getViews()

Returns an array of the [Window](/docs/Web/API/Window) objects for each of the pages running inside the current extension. This includes, for example: - the background page, if one is defined - any popup pages, if defined and loaded - any options pages, if defined and loaded - any browser tabs that host content packaged with the extension In Firefox, if this method is called from a page that is part of a private br

menus.OnClickData

element. Note that this is not the [id](/docs/Web/HTML/Reference/Global_attributes/id) attribute of the page element. - `viewType` - : ViewType. The type of extension view. - `wasChecked` - : `boolean`. A flag indicating whether a checkbox or radio item was checked before it was clicked. ## Browser compatibility > [!NOTE] > This API is based on Chromium's [`chrome.contextMenus`](https://developer.chrome.c

menus.create()

other browsers, Firefox makes this method available in the `contextMenus` namespace and `menus` namespace. > **Creating menus in persistent and non-persistent extensions** > > How you create menu items depends on whether your extension uses: > > - non-persistent background pages (an event page), where menus persist across browser and extension restarts. You call `menus.create` (with a menu-specific ID) from within a

menus.update()

(), except that `id` can't be set. In addition, `icons` can only be changed on menu commands, not on the top-level context menu. The top-level icon matches the extension's primary icon as declared in the extension's manifest file. - `checked` - : `boolean`. The initial state of a checkbox or radio item: `true` for selected and `false` for unselected. Only one radio item can be selected at a time in a given

JSON results · Services directory