Disable Utility Pop-Out (for the Utility Bar) #inSalesforce
Have a button to control the behaviour in your lightning component
<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
<lightning:utilityBarAPI aura:id="utilitybar" />
<lightning:button label="Disable Utility Pop-Out" onclick="{! c.disableUtilityPopOut }" />
</aura:component>
<lightning:utilityBarAPI aura:id="utilitybar" />
<lightning:button label="Disable Utility Pop-Out" onclick="{! c.disableUtilityPopOut }" />
</aura:component>
({
disableUtilityPopOut : function(component, event, helper) {
var utilityAPI = component.find("utilitybar");
utilityAPI.disableUtilityPopOut({
disabled: true,
disabledText: "Pop-out is disabled"
});
}
})
disableUtilityPopOut : function(component, event, helper) {
var utilityAPI = component.find("utilitybar");
utilityAPI.disableUtilityPopOut({
disabled: true,
disabledText: "Pop-out is disabled"
});
}
})
Visual: https://www.youtube.com/watch?v=8x8ldOqrPcw
Comments
Post a Comment