forked from yui/yui3-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
petey edited this page Sep 13, 2010
·
2 revisions
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”
});
});