wijmo.pager.wijpager Namespace > options type : pageIndexChanged Event |
Javascript (Usage) | |
---|---|
$(function () { // Set pageIndexChanged event handler function $(".selector").wijpager({ 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; } });