Wijmo UI for the Web
totalValue Option

Default value: 5

An option that determines the total value of the rating widget.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  number
    returnsValue = $(".selector").wijrating("option", "totalValue");
    
    // Set value
    var newValue; // Type:  number
    $(".selector").wijrating("option", "totalValue", newValue);
        
});
Javascript (Specification) 
var totalValue : number;
Remarks
For example, in a rating widget with 5 stars the count is 5. A split of 2 means that each star is split into two parts. If the totalValue of the stars is 100, then each part of the split star has a value of 10 and each whole star has a value of 20. The step can be represented by this equation: 100/(5 * 2) = 10 and the value of one star can be represented by this equation: 10*(1 * 2) = 20.
Browser Compatibility
7
5
5

See Also

Reference

options type
wijrating jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.