PDA

View Full Version : Panel - could not find expand cls



rakesh.mmp
23 Jun 2015, 6:00 AM
Hi,

I have a panel and I have applied class when I collapsed the panel
[collapsedCls (http://docs.sencha.com/extjs/4.2.2/#%21/api/Ext.panel.Panel-cfg-collapsedCls) : 'collapsed'].
but I also wanted to apply a class when panel is expanded. I could not find the [expandCls].
Can any one please tell an equivalent of "expand cls"?


Regards,
Rakesh

Jad
23 Jun 2015, 6:50 AM
there is a config named cls

tristan.lee
23 Jun 2015, 1:38 PM
There's not one for when the component is expanded other than the cls and componentCls options. Would those work?

rakesh.mmp
23 Jun 2015, 10:33 PM
cls and componentCls does not work

suzuki1100nz
24 Jun 2015, 12:44 AM
Hi rakesh.mmp,

Appears there is no expandCls and cls is not reapplied or collapseCls removed.
Smells of a great feature suggestion.

Really expanding a panel should remove the collapseCls and reapply cls.

A work around is to arm a listener on the expand event and remove the collapseCls