Badge Group Alpha
A group of rating badges that use data attributes for manual or dynamic rating input.
No related components.
How do I change the star rating?
The star rating is controlled via a data attribute called
data-badge-value. This makes the badge query loop compatible, as the data attribute allows you to set the star rating dynamically.
To change the star rating manually, click on
.fr-badge-alpha__iconand then navigate to style > attributes. Open the
data-badge-valueattribute and change the value to the new rating.
To change the star rating dynamically, use a custom field or some other database value for your rating. Then, you can pass the value of that field into the data attribute value input using dynamic data.
Use the related frames section above to check FAQs for other frames related to this frame if you don't see your question here.