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.

collapsed Optional

boolean. Whether the tab group is collapsed or expanded in the tab strip.

color Optional

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

title Optional

string. The name of the tab group.

Return value

A Promise fulfilled with a tabGroups.TabGroup object. If the request fails, the promise is rejected with an error message.

Browser compatibility