Movatterモバイル変換


[0]ホーム

URL:


  1. Mozilla
  2. Add-ons
  3. Browser extensions
  4. JavaScript APIs
  5. tabGroups
  6. tabGroups.update

tabGroups.update

Modifies the state of a tab group.

Syntax

js
let updatedTabGroup = await browser.tabGroups.update(    groupId,               // integer    updateProperties       // object);

Parameters

groupId

integer The ID of the tab group to update.

updateProperties

An object containing details of the properties to update for this tab group. Properties that aren't specified aren't modified.

collapsedOptional

boolean. Whether the tab group is collapsed or expanded in the tab strip.If the active tab is in a group that is collapsed:

  • In Firefox, the tab remains active and only the inactive tabs are collapsed.
  • In Chrome, the active tab is moved to the first tab to the right of the group. If there is no tab to the right of the group, it's moved to the tab immediately to the left of the group.
colorOptional

tabGroups.Color. The name of the color to use for the tab group.

titleOptional

string. The name of the tab group.

Return value

APromise fulfilled with atabGroups.TabGroup object. If the request fails, the promise is rejected with an error message.

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp