Wijmo UI for the Web
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.

Syntax
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) 
var pageIndex : number;
Example
// 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
});
Browser Compatibility
7
5
5

See Also

Reference

options type
wijpager jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.