Results 1 to 3 of 3

Thread: how to fire button click

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    26
    Vote Rating
    0
      0  

    Default how to fire button click

    needing to fire click event for a button i didn't see from api a button.click() or similar.
    I found that button.handler() does the job.
    Now: is this a workaround or it's the correct way to call the click event ?
    Thanks

    p.s. it's easy to define the handler in a normal (not anonymous) function, but this is a question just for learning.

  2. #2
    Ext User
    Join Date
    Apr 2007
    Posts
    379
    Vote Rating
    0
      0  

    Default

    you could also do:

    someButton.fireEvent("click");

  3. #3
    Ext User
    Join Date
    Oct 2007
    Posts
    26
    Vote Rating
    0
      0  

    Default

    thanks. It was so obvious......

Posting Permissions

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