focusTab (app profile manager)
Sets the focus on a specified tab in the current session.
Syntax
Microsoft.Apm.focusTab(tabId);
Parameters
Name | Type | Required | Description |
---|---|---|---|
tabId | String | Yes | Unique identifier of the tab to be focused. |
Return value
None.
Examples
The following examples use the focusTab
method to set the focus on a specified tab.
Set a tab in focus using Microsoft.Apm.focusTab(tabId)
Microsoft.Apm.focusTab("tab-id-5);
Set a tab in focus using Microsoft.Apm.getFocusedSession().getTab().focus()
Microsoft.Apm.getFocusedSession().getTab("tab-id-5").focus();
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應