Show/hide subpanels dynamically in Ext JS <p>I have created a view (a panel) with 3 subpanels ... When the view loads , I want a function to run in viewController and based on its outcome , I want subpanel 1 to be visible(subpanel2 to be invisible) or subpanel2 to be visible(subpanel1 to be invisible)</p> <p>How can I accomplish this ?</p>