Results 1 to 3 of 3

Thread: Toggling bewteen class dynamiclay

Hybrid 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');

  3. #2
    Sencha User
    Join Date
    Apr 2010
    Location
    China
    Posts
    227
    Answers
    64
    Vote Rating
    20
      0  

    Default

    bio.setBaseCls('PanelBio');
    bio.setBaseCls('PanelBioPhone');
    I write English by translator.

  4. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    28
    Answers
    1
    Vote Rating
    0
      0  

    Default

    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 !

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
  •