-
5 Nov 2012 5:28 PM #1
Answered: Toggling bewteen class dynamiclay
Answered: Toggling bewteen class dynamiclay
Hi !
In the longpress event, I'm trying to apply a Panel's baseCls at runtime. Like this :
Since it doesn't work, can anyone explain me how to do this ?Code:var bio = Ext.getCmp('panelBio02'); if(Ext.is.Tablet || Ext.is.Desktop) { bio.setBaseCls = 'PanelBio'; }else{ bio.setBaseCls = 'PanelBioPhone'; }
-
Best Answer Posted by haduki
bio.setBaseCls('PanelBio');
bio.setBaseCls('PanelBioPhone');
-
5 Nov 2012 5:40 PM #2
bio.setBaseCls('PanelBio');
bio.setBaseCls('PanelBioPhone');I write English by translator.
-
6 Nov 2012 5:25 AM #3
Absolutely... I was way out on that one. I was trying to affect a property like in C#... but in reality it is a set method. Thanks !


Reply With Quote