Article

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

margin

Specifies the spacing around an element.

tv-rating-style

Sets the displayed image for rating a product.

tv-tint-color

Sets the tint color for an element.

Valid TVML Attributes

binding

Associates information in a data item with an element.

prototype

Associates a data item type with an element.

theme

Sets the color scheme for an element.

value

Specifies the value used for a fillable element.

See Also

Badge Elements

badge

A small image displayed alongside or on top of another image.

seasonBadge

Displays an image that indicates the season for an associated media item.

textBadge

Displays text associated with an image.