1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    45
    Answers
    4
    Vote Rating
    0
    smerny is on a distinguished road

      0  

    Default Unanswered: "this" in function onclick for checkboxfield

    Unanswered: "this" in function onclick for checkboxfield


    Code:
            
    xtype: 'checkboxfield',                    
    name: 'exampleName',
    id: 'exampleId',
    value: 'exampleValue',
    label: 'exampleLabel',
     listeners: {
           click: {
                   element: 'el',
                    fn: function() { 
                           alert("clicked:"+this.name+". checked:"+this.checked+".")
                     }
              }
     }
    I want to get "clicked:exampleName. checked:true/false."... but i'm getting "clicked:undefined. checked:undefined", how can get the information that i want?

  2. #2
    Sencha User
    Join Date
    Sep 2011
    Posts
    45
    Answers
    4
    Vote Rating
    0
    smerny is on a distinguished road

      0  

    Default


    made a breakpoint with chrome developer tools and went through the var... ended up with this..

    alert("clicked:"+this.dom.id+". checked:"+this.dom.lastElementChild.checked+".")

    which works... but is this how it should be done?

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar