tabGroups.move
Moves a tab group within or to another window. Groups can't be moved before a pinned tab or inside another tab group.
Syntax
js
let movedTabGroup = await browser.tabGroups.move(
groupId, // integer
moveProperties // object
);
Parameters
groupId
-
integer
The ID of the tab group to move. moveProperties
-
An object containing details of the location to move the tab group to.
index
-
integer
. The position to move the group to. After moving, the first tab in the tab group is at this index in the tab strip. Use -1 to place the group at the end of the window. windowId
Optional-
integer
. The window to move the group to. Defaults to the window the group is in. Groups can only be moved to and from windows withwindows.WindowType
type"normal"
.
Return value
A Promise
fulfilled with a tabGroups.TabGroup
object. If the request fails, the promise is rejected with an error message.