Contents

ratingBadge

Displays an image used to rate a product.

Overview

The ratingBadge element contains a link to an image that is to be displayed. This element is commonly used to display a small image inside of a reviewCard element. Here’s an example of a review with a fresh rating from Rotten Tomatoes.

<reviewCard>
    <breviewBadge src="resource://tomato-fresh-m" />
    <title>WWDC Review</title>
    <description>Brief review here</description>
    <text>Ravi Patel June, 8 2015</text>
</reviewCard>

Contained In

Topics

Valid TVML Styles

Valid TVML Attributes

See Also

Badge Elements