Wijmo UI for the Web
pageIndexChanged Event
The jQuery.Event object.
The data associated with this event.
The pageIndexChanged event handler is a function called when the page index is changed.
Syntax
Javascript (Usage) 
$(function () {
    // Set pageIndexChanged event handler function
    $(".selector").wijpager({
        pageIndexChanged : function (e, args) {
     
        }
    });
});
Javascript (Specification) 
pageIndexChanged = function ( 
   e : object,
   args : IPageIndexChangedEventArgs
) { };

Parameters

e
The jQuery.Event object.
args
The data associated with this event.
Example
// Supply a callback function to handle the event:
$("#element").wijpager({
   pageIndexChanged: function (e, args) {
      // Handle the event here.
   }
});
// Bind to the event by type:
$("#element").bind("wijpagerpageindexchanged", function (e, args) {
   // Handle the event here.
});
// You can also use this event to get the selected page by using the args.newPageIndex parameter:
$("#element").wijpager({
   pageIndexChanged: function(e, args) {
      var selectedPageIndex = args.newPageIndex;
   }
});

See Also

Reference

options type
wijpager jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.