Skip to main content

I’ve implemented the Tab action override for a custom object as per these instructions.


Here is the XML for my SkuidBatchesTab component:


<aura:component implements="lightning:actionOverride,force:appHostable" access="global">
<skuid:page page="BatchesTab"/>
</aura:component>

Here it is implemented as an override.



And here is the browser tab title as “SAS_Batch__c”.


image


So how can I set the browser tab name?

Was looking to do the same and got it to work based on a post from StackExchange


Open the Dev Console where you created the Lightning Component Bundle


  1. added the aura:handler line as below

<aura:component implements="lightning:actionOverride,force:appHostable" access="global">
<skuid:page page="MySkuidPage"/>
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
</aura:component>

  1. Click the Controller option on the right and add this code. This is where you can set the browser tab title


({
doInit : function(component, event, helper){
document.title = "NEW PAGE TITLE";
}
});

  1. Save both and refresh. Might have to clear the cache/cookies for it to take effect.

I wonder if anyone knows a simpler way to change the page title.


Reply