Lets the user rate something by clicking an icon that represents a rating. The Rating control can display three types of ratings: an average rating, a tentative rating, and the user's rating.
Creates a new Rating.
The DOM element hosts the new Rating.
An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events. Event names must begin with "on". For example, to provide a handler for the cancel event, add a property named "oncancel" to the options object and set its value to the event handler.
Gets or sets the average rating.
Gets or sets whether the control is disabled. When the control is disabled, the user can't specify a new user rating or modify an existing rating.
Gets the DOM element that hosts the Rating.
Gets or sets whether control lets the user clear the rating.
Gets or sets the maximum possible rating value.
Gets or sets a set of descriptions to show for rating values in the tooltip.
Gets or sets the user's rating.
Registers an event handler for the specified event.
The name of the event to handle.
The event handler function to associate with the event.
Set to true to register the event handler for the capturing phase; otherwise, set to false to register the event handler for the bubbling phase.
Releases resources held by this Rating. Call this method when the Rating is no longer needed. After calling this method, the Rating becomes unusable.
Raised when the user finishes interacting with the rating control without committing a tentative rating.
An object that contains information about the event.
Raised when the user commits a change to the userRating.
An object that contains information about the event. The detail property of this object contains the following sub-properties: detail.tentativeRating.
Raised when the user is choosing a new tentative Rating.
An object that contains information about the event. The detail property of this object contains the following sub-properties: detail.tentativeRating.
Removes an event handler that the addEventListener method registered.
The name of the event that the event handler is registered for.
The event handler function to remove.
Set to true to remove the capturing phase event handler; set to false to remove the bubbling phase event handler.