Minimize the Utility from the Button #inSalesforce

Minimize the Utility from the Button #inSalesforce


Component:

<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
    <lightning:utilityBarAPI aura:id="utilitybar" />
    <lightning:button label="Minimize Utility" onclick="{! c.minimizeUtility }" />
</aura:component>


Controller:

({
    minimizeUtility : function(component, event, helper) {
        var utilityAPI = component.find("utilitybar");
        utilityAPI.minimizeUtility();
    }
})


Visual: https://www.youtube.com/watch?v=QZhw961Hkqo

Comments