Wijmo UI for the Web
counterFormat Option

Default value: '[i] of [n]'

Determines the text format of counter. '[i]' and '[n]' are built-in parameters represents the current page index and the number of pages.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  string
    returnsValue = $(".selector").wijlightbox("option", "counterFormat");
    
    // Set value
    var newValue; // Type:  string
    $(".selector").wijlightbox("option", "counterFormat", newValue);
        
});
Javascript (Specification) 
var counterFormat : string;
Example
$("#id").wijlightbox({
     counterFormat: '[i]/[n]'
 });
Browser Compatibility
7
5
5

See Also

Reference

options type
wijlightbox jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.