Results 1 to 3 of 3

Thread: Paging buttons event

  1. #1
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    67

    Default Paging buttons event

    Hi,

    I know how I can add buttons to paging toolbar, and add handlers to created buttons, but how can I add handler to buttons for first, prev, next, last and refresh buttons that come with paging toolbar?

    Thank You...

  2. #2
    Ext Premium Member BernardChhun's Avatar
    Join Date
    Mar 2007
    Location
    Quebec, Canada
    Posts
    831

    Default

    those buttons are within the toolbar as properties. Just keep a variable pointing to your toolbar and you'll be able to add any events this way:

    Code:
    myPagingToolbar = new Ext.[...];
    myPagingToolbar.first.on("click", function(){}, this, true);
    myPagingToolbar.prev.on("click", function(){}, this, true);
    myPagingToolbar.next.on("click", function(){}, this, true);
    myPagingToolbar.last.on("click", function(){}, this, true);
    on trick I use often to check out object's properties is using the console.log(object) command within your code. That displays everything your object has within Firebug.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    67

    Default

    Thank You...

Posting Permissions

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