wijmo.pager.wijpager Namespace > options type : pageIndex Option |
Default value: 0
An option that indicates the zero-based index of the current page. By default, your pager will display with the first pager button highlighted since its index is 0.
Javascript (Usage) | |
---|---|
$(function () { // Get value var returnsValue; // Type: number returnsValue = $(".selector").wijpager("option", "pageIndex"); // Set value var newValue; // Type: number $(".selector").wijpager("option", "pageIndex", newValue); }); |
Javascript (Specification) | |
---|---|
|
// Here's the general way you'll set the option. This will allow your pager widget to display with the 3rd page button highlighted: $("#element").wijpager({ pageIndex: 2 });