ExtJS. Apply the handler to class references.



  • There is a group of references, the same processor needs to be asked by ExtJS. References know classes. For example, the reference to disposal contains in the attribut id the recording number to be deleted. I'd like to process it first with ExtJS, and then either go on the default reference, or it's an act to stop (default) in jQuery.

    I didn't find a Google at ExtJS nub. Please help me.


    I'd like to get an analog of this jQuery function.

    $('.linkclass').click(function(e){    
        alert(this.attr('id'));    
        e.preventDefault();    
    });
    


  • Ext.select('.linkclass').on('click', function(e) {
        alert(e.target.id);
        e.preventDefault();
    });
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2