require(["deliteful/StarRating"], function (StarRating) {
new StarRating();
});
A widget that displays a rating, usually with stars, and that allows setting a different rating value
by touching the stars.
Its custom element tag is d-star-rating
.
See the user documentation for more details.
Extends
- delite/FormValueWidget
Members
-
allowZero :boolean
-
Indicates whether the user is allowed to set the value to zero or not.
Type:
- boolean
-
baseClass :string
-
The name of the CSS class of this widget.
Type:
- string
-
editHalfValues :boolean
-
Indicates whether the user is allowed to edit half values (0.5, 1.5, ...) or not. Ignored if readOnly is set to false.
Type:
- boolean
-
max :number
-
The maximum rating, that is also the number of stars to show.
Type:
- number
-
value :number
-
The current value of the Rating.
Type:
- number