Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A Boolean value indicating whether a tab can be closed.
Note
If the canClose property is set to false, then the button to close the tab is hidden. Otherwise, the close button is visible.
Return value
None.
Example
const tab = Microsoft.Apm.getFocusedSession().getFocusedTab();
if (tab.canClose) {
tab.close();
}