Event when Component becomes visible?

Is there any event which fires when a Component becomes visible?

I’d like this to do things like, e.g., change the toolbar. Something like the following:

$$(“productView”.attachEvent(“myDesiredOnShowEvent”, function(…) {
#do anything else needed when component becomes visible

If you are asking about multiview, you may use onViewChange event:


Unfortunately there is no events for such use-case.
We will consider adding one, like “onViewShow”

Yeh think it would be useful