onViewShow event for jetapp

Hi, previously I utilised the onViewShow to detect from the Jet View itself when it’s showing in a multiview.

Now I’m thinking to use Jet App in multiview as well. Can you suggest a way for a Jet app module to know it’s currently shown in a multiview, preferably something like onViewShow?

There are two possible strategies

a) You can call some method of the view, when it becomes visible in multiview

https://snippet.webix.com/j85dofw9

b) You can replace multiview with a single jet subview, in such case init method of the view will be called each time when the view becomes visible.

https://snippet.webix.com/qatto9ck

What I meant is the app itself passed as one of the views in multiview:
https://snippet.webix.com/z788l8r7

How “data visible” can be shown in this case?

For solution (b) it will work the same ( you can use JetApp class in all places where JetView class can be used )

For solution (a) it requires an extra step to get app object from the webix.ui

https://snippet.webix.com/qu5j85ag

Ok thanks.
Was hoping for much cleaner approach, but for now solution (a) would do for my use case.