5

We are using utility bar component to display notifications for users: https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_js_utility.htm

But according to our delivery practice, we are always providing feature toggle for every new feature released, e.g. some boolean flag in custom settings to tick for client's admin.

The problem here is how to hide completely such utility bar component based on condition.

So far we've been playing with UtilityBarAPI (https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_methods_lightning_utilityBarAPI.htm) to set width and height to 0, remove icons and titles etc. Is there any better way to achieve this?

0

At this moment, no option exist for toggle switch on Utility Bar level because we can't control the Component Visibility on those items by conditions.

Check the following idea and please vote for it: https://success.salesforce.com/ideaView?id=0873A0000003f6LQAQ

As a workaround, I suggest the following: the app level visibility could be an option to get what you want. Depends on how complicated your app from component number standpoint, maybe it can work out for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.