See Also:
Accordion Layout
Table Layout
Grid Layout
Linear Layout
Relative Layout
Fill Layout
ViewPager layout
Tabs layout
Docking layout
layout:{
type : 'navbar'
}
In the Navigation Bar layout, you always have two child views. The first view is initially off screen to the left, while the second main view will span the entire viewport(parent view).
When the first view is shown, it will slide in from the left moving both child views:
ludo.get('<parent>').getLayout().show();
If you want to hide the view again, you can call
ludo.get('<parent>').getLayout().hide();
You may also use the toggle function. It will call the show method if the view is hidden and the hide method otherwise.
ludo.get('<parent>').getLayout().toggle();