Sha256: 2cdb465b7384ffc17d5160c3791e46ac7fb9f4989bb3706c8689a2c418b504ef
Contents?: true
Size: 772 Bytes
Versions: 6
Compression:
Stored size: 772 Bytes
Contents
#rating.style-guide__subsection %h3= link_to_style_guide('components', 'rating') %p Displays a graphical rating scale for a numerical rating (1.0 - 5.0). Use the <code>rating_stars(rating, options = {})</code> helper to generate the rating stars. %h4 Options %ul %li <code>aggregate</code> (default: false) %ul %li Passing <code>aggregate: true</code> will change schema.org rating type from `reviewRating` to `aggregateRating` (an average rating from multiple reviews). See <a href="https://schema.org/AggregateRating">https://schema.org/AggregateRating</a> for more info. - [1.5, 2.0, 3.75, 4.1, 4.8].each do |rating| %p Example: rating of #{rating} .style-guide__example-block = rating_stars(rating, aggregate: true)
Version data entries
6 entries across 6 versions & 1 rubygems