I am trying to open a primary via this:
sforce.console.openPrimaryTab(null, '/lightning/n/***', true, 'TestSearch', openSuccess, 'salesforceTab');
Now if I pass false
, the tab opens and does not gets focus, but is there a way to make the unfocused tab blink?
Also can we open more than one primary tab?
Update
When we try to move to lightning, we have an api for tab creation, and there is a method which highlights the tab.
onTabCreated : function(objComponent, objEvent) {
let strTabId = objEvent.getParam('tabId');
let objWorkspaceAPI = objComponent.find("workspace");
objWorkspaceAPI.setTabHighlighted({
tabId: strTabId,
highlighted: true,
options: {
pulse: true,
type: "success"
}
});
}
Using this I can highlight the tab, but only a red mark comes up on the tab and also the pulse option does not work as it is defined in the documentation? Is this the correct way to use the pulse.?