Module: deliteful/StarRating

deliteful/StarRating

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.

Source:

Extends

  • delite/FormValueWidget
Show inherited

Members

allowZero :boolean

Indicates whether the user is allowed to set the value to zero or not.

Type:
  • boolean
Source:

baseClass :string

The name of the CSS class of this widget.

Type:
  • string
Source:

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
Source:

max :number

The maximum rating, that is also the number of stars to show.

Type:
  • number
Source:

value :number

The current value of the Rating.

Type:
  • number
Source: