Threaded View

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    3
    Answers
    1
    Vote Rating
    0
    endoooo is on a distinguished road

      0  

    Default Answered: using dataMap to define dataItem.Cls value

    Answered: using dataMap to define dataItem.Cls value


    is it possible to use dataMap (or any other methods/configs) to use dataItem.record.data.someKey value as dataItem.cls?

    something like:

    Code:
    config: {
      cls: ['some-class'],
      dataMap: {
        getCls: {
          // addCls using "someKey" value
        }
      }
    }
    thanks in advance!


    update: problem solved!

    I managed to do this using the initialize method.
    here is how it ended:

    Code:
    initialize: function() {
        this.callParent();
    
    
        this.addCls([this.getRecord().data.someKey]);
        //considering someKey value is a string
    }
    that's all.
    hope it helps someone.
    Last edited by endoooo; 12 Dec 2012 at 4:00 PM. Reason: problem solved


Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi