I have some html/js code I want to display in a utility bar item, and I want to be able to run the Utility Bar API on some events that occur in the js code. The html includes me importing a js file I am storing as a static resource.
The problem seems to be that:
- You can only run the utility bar api in an aura component
- You cannot use script tags in aura components
I was able to use
ltng:require to include the static resource, but I couldn't access the code from the controller code (the static resource populates a property on the window object, which I couldn't access from the controller for some reason.
Am I missing something here? Is it possible to accomplish this? It seems strange that I wouldn't be able to.