jQuery.wijmo.wijpager Namespace > options type : pageIndexChanged Event |
Javascript (Usage) | |
---|---|
var instance; // Type: options instance.pageIndexChanged = function(e, args) { }; |
Javascript (Specification) | |
---|---|
pageIndexChanged = function ( e : object, args : IPageIndexChangedEventArgs ) { }; |
// 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; } });