tabGroups.move
將標籤組在視窗內或移動到另一個視窗。組不能移動到固定標籤之前或移動到另一個標籤組內部。
語法
js
let movedTabGroup = await browser.tabGroups.move(
groupId, // integer
moveProperties // object
);
引數
groupId-
integer要移動的標籤組的 ID。 moveProperties-
一個包含標籤組移動到的位置的詳細資訊的物件。
index-
integer. 要將組移動到的位置。移動後,標籤組中的第一個標籤在該標籤條中的索引是此值。使用 -1 將組放在視窗的末尾。 windowId可選-
integer. 要將組移動到的視窗。預設為組所在的視窗。組只能移動到和從型別為"normal"的windows.WindowType的視窗之間。
返回值
一個 Promise,它會以一個 tabGroups.TabGroup 物件 fulfilled。如果請求失敗,Promise 會以一個錯誤訊息被 rejected。
瀏覽器相容性
載入中…