Skip to content
petey edited this page Sep 13, 2010 · 2 revisions

Gallery-Rating example

Put a node in your source that represents the location of the rating widget. This should contain a number value that represents the current value.
<span id=“myWidget”>2.5</span>
Then configure the ratings widget as desired:

YUI {
var ratings = new Y.Ratings(
{ srcNode: “#myWidget” }, // The source node for the widget
inline: true, // Should the widget be inline? Default is false
skin: “small” // Should the widget use smaller graphics? Default is “default”
});
});

Clone this wiki locally