Proper way to access viewport from a card
I have a navigationview for my viewport:
I need to access the viewport from within a card (either the controller or the view - Id like to know how to do both).
I have created a ref in my card as:
Now I would like in this case to access the navigationbar of the viewport. I would like to know how to do this from either the controller init() or the matching view onShow() method.
In the controller init() the call to this.getViewport() returns undefined - I assume the ref is not created then. I then tried Ext.Viewport.getNavigationBar() but that is also undefined and also seems to be a no no as to accessing the viewport.
So how do I do this in B3?