PDA

View Full Version : Is there a way to collapse a collapsible panel?



robertdbuckley
21 Jul 2011, 11:50 AM
I just want to collapse a panel ona button handler. .show() doesn´t work. Is this possible?

yours,


Rob

chris24300
21 Jul 2011, 12:56 PM
Look at methods .collapse([boolean animate]) and .expand([boolean animate]). that'll get the job done.

http://dev.sencha.com/deploy/ext-3.3.1/docs/#expand (http://dev.sencha.com/deploy/ext-3.3.1/docs/source/Panel.html#method-Ext.Panel-collapse)

C