Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid 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


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

      0  

    Default closing thread

    closing thread