1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    264
    Vote Rating
    0
    Stephan123 is on a distinguished road

      0  

    Default bind event

    bind event


    Hello !

    I have a beginner question.
    I will bind a event to a function.
    In JQuery i write

    $(".mole").bind('click',function(e){
    ...
    });

    How can I express this in Ext JS ?

    Your sincerly

    Stephan

  2. #2
    Sencha User
    Join Date
    Oct 2009
    Location
    Cambridge, UK
    Posts
    164
    Vote Rating
    0
    Uberdude is on a distinguished road

      0  

    Default


    Code:
    Ext.get(".mole").on('click',function(e){
       ...
    });

  3. #3
    Sencha User
    Join Date
    Feb 2009
    Posts
    264
    Vote Rating
    0
    Stephan123 is on a distinguished road

      0  

    Default arguments in the function

    arguments in the function


    Hello !

    Thanks for the information.
    When i use the function and i controll the variables in the function i see an array
    with the name 'arguments'. Where can i found same information about this array ?

    Your sincerly

    Stephan

  4. #4
    Sencha User
    Join Date
    Oct 2009
    Location
    Cambridge, UK
    Posts
    164
    Vote Rating
    0
    Uberdude is on a distinguished road

      0  

    Default


    Do you mean the arguments pseudo-array that is available in all javascript functions? https://developer.mozilla.org/en/Jav...cope/arguments

    If you want to know what parameters are available to the event listener, look in the documentation, for example the 'click' event of Ext.Element says:

    click : ( Ext.EventObject e, HtmlElement t, Object o )
    Fires when a mouse click is detected within the element.
    Listeners will be called with the following arguments:
    • e : Ext.EventObject
      The Ext.EventObject encapsulating the DOM event.
    • t : HtmlElement
      The target of the event.
    • o : Object
      The options configuration passed to the addListener call.




Thread Participants: 1

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