function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AshlekhAshlekh 

In Lightning Console - Need to close custom LWC in Utility Bar by javascript code or any event.

Hi All,

I've a requirement to put a custom LWC in Utility Bar (in footer). When user click on LWC component a default pop-up or container open by salesforce standard and our custom component populate in that pop-up or container. 

In my component I've provided a button to user to click and redirect to new custom url, but after once user redirected I want to close that pop-up or container should close automatically or implicit. User don't need to click to close this.

Anyone has achieved this than pls help me. 

In Auro component we have this $A.get("e.force:closeQuickAction"); function but for LWC I don't know.

Thanks
Ashlekh Gera
AbhishekAbhishek (Salesforce Developers) 
https://salesforce.stackexchange.com/questions/283117/how-to-close-the-utility-bar-in-lightning-web-component


I think your query is answered above.

If it helps mark it as the best answer.



Thanks.