Results 1 to 3 of 3

Thread: Toggling bewteen class dynamiclay

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    28
    Answers
    1
    Vote Rating
    0
      0  

    Default Answered: Toggling bewteen class dynamiclay

    Hi !

    In the longpress event, I'm trying to apply a Panel's baseCls at runtime. Like this :

    Code:
    var bio = Ext.getCmp('panelBio02');
    
    
    if(Ext.is.Tablet || Ext.is.Desktop) {
        bio.setBaseCls = 'PanelBio';
    }else{
        bio.setBaseCls = 'PanelBioPhone';
    }
    Since it doesn't work, can anyone explain me how to do this ?

  2. bio.setBaseCls('PanelBio');
    bio.setBaseCls('PanelBioPhone');

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •