Search...
numRatings
Sets or gets the displayed number of ratings.
Description
Setting the numRatings
property sets the displayed number of ratings,
usually used to indicate how many ratings have been collected, if the
element is set to show the number of ratings.
Set the numRatings
value to a non-negative number.
Getting the numRatings
property returns the current number of ratings.
Type:
numberRead & Write
Was this helpful?
Get the displayed rating
Copy Code
1let numRatings = $w("#myRatingsDisplay").numRatings; // 97
Set the displayed rating
Copy Code
1$w("#myRatingsDisplay").numRatings = 97;