View Full Version : How to hide and show a form.panel

23 Oct 2012, 10:25 AM
Can anyone help me to hide a form.panel and show the same form.panel on some event fired.

I have one form.panel "NotificationTreePanel", in this panel i have crated another form.panel using the xtype : form, i want to hide this form.panel initially and want to show this form.panel on some event fire.

please help me in this.. :(

James Goddard
23 Oct 2012, 12:11 PM
initial config:
hidden: true

on event:
panel.show ();

23 Oct 2012, 1:23 PM
You initially hide a component in its config with:

hidden: true

And later you can show it either with myComponent.setVisible() or perhaps using myComponent.show(), and the other poster illustrated.