Results 1 to 2 of 2

Thread: "General" click event for Toolbars?

  1. #1
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    532

    Default "General" click event for Toolbars?

    Is there a simple way to get a single event (that passes the button that was clicked) at the toolbar level when any button on the toolbar is clicked?

    I can approximate this by adding the same handler to every single button on the toolbar, but it seems like there would be a simpler way. Also, my particular application needs to buffer the response to the click by 1 to 2 seconds--doing this on each separate event handler only buffers multiple clicks on that button, not clicks on several different buttons during the buffer delay.

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Answers
    512

    Default

    Although I haven't tested it I think that you could listen to clicks on the toolbar component's body, identify the item clicked in the handler and fire your own event, e.g. "toolbarclick"
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


Similar Threads

  1. cannot fire a "click" event in a tree
    By flamant in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 28 Jul 2010, 2:16 AM
  2. Replies: 7
    Last Post: 2 Jul 2010, 11:19 PM
  3. problem with adding "Click" event handler
    By shelly in forum Sencha Ext JS Q&A
    Replies: 4
    Last Post: 7 Sep 2009, 5:16 PM
  4. Now "right-click" or "contextmenu" event on Button?
    By dbassett74 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 11 Jul 2009, 10:19 AM
  5. Toolbar button "click" event firing on load
    By levay in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 5 Dec 2007, 11:47 PM

Posting Permissions

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