Results 1 to 7 of 7

Thread: Ext equivalent to the jQuery method .live()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2009
    Eastern WA, US
    Vote Rating

    Default Answered: Ext equivalent to the jQuery method .live()

    Does such a thing exist or will I need to roll my own?

    Description: Attach an event handler for all elements which match the current selector, now and in the future.

  2. You achieve it by using the delegate option:!...od-addListener

    Ext.getBody().on('click', function(){
        console.log('You clicked foo');
    }, null, {
        delegate: '.foo'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts