Pass "this".
This will pass the ElementRef for the component.
onTabClose OnTabClose, optional, can be used to prevent closing of a tab or close async. onAttachTab OnAttachTab, will always trigger when currentNavigationBarTab is set. onAttachToolbar TabWithToolbar, optional, will set currentToolbar if there was a toolbar in the VI Router. onTabEnter OnTabEnter, optional, will trigger when tab is entered. onTabLeave OnTabLeave, optional, will trigger when tab is left. onTabSaveConfirm OnTabSaveConfirm, optional, basic dialog box can be created when closing a dirty tab.
This is used to expose any PotentialTabItem hooks on a component up to the Tab Service.
{string} This will be ID of an existing tab.
{INavigationBarTab} See INavigationBarTab.
Optional
secondaryTab: INavigationBarTab<{ {INavigationBarTab} See INavigationBarTab. If left undefined, this will select the previously selected secondary tab of the primary tab or its first index secondary tab.
See ExternalTabConfig.
This will run removeApplicationTabById on all tabs, will stop if any fail to close, will wait for each close to complete.
{string} This will be ID of an existing tab.
Optional
suppressNavigation: boolean{boolean} Set suppressNavigation to true if you want to close a tab that isn't open.
Optional
tabIdToKeep: string{string}
This will run the same as removeAllApplicationTabs, but not on the provided tabIdToKeep.
{string} This will be ID of an existing tab.
{INavigationBarTab} See INavigationBarTab.
This will remove an existing application tab then replace with another. If removeApplicationTabById is unsuccessful this will fail. Use case can be saving a tab which has a temporary ID, and reopening it with a saved payload.
{string} This will be ID of an existing tab.
See ExternalTabConfig.
This API provides functionality relating to the shell tabs.
Accessed from the window at
window.sas.vi.shellTabs
.Example