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(…) {
$(“toolBar”).showBatch(…)
#do anything else needed when component becomes visible
});

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

$$(“multiviewId”).attachEvent(“onViewChange”,function(prevId,newId){
if(newId==“productView”)
$$(“toolBar”).showBatch(…);
})

$(“toolBar”).showBatch(…)
Unfortunately there is no events for such use-case.
We will consider adding one, like “onViewShow”

Yeh think it would be useful