Movatterモバイル変換


[0]ホーム

URL:


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

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.

windowIdOptional

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

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