Whether to reset the rating when the user selects the same value.
The disabled state of the component.
Sets hover preview behavior for the component
Sets the control into invalid state (visual state only).
The label of the control.
The name attribute of the control.
Makes the control a readonly field.
A format string which sets aria-valuetext. Instances of '{0}' will be replaced with the current value of the control and instances of '{1}' with the maximum value for the control.
Important for screen-readers and useful for localization.
Static
Readonly
tagReturns the HTML-uppercased qualified name.
The initial value of the component.
Returns the HTMLFormElement associated with this element.
A string containing the validation message of this element.
Returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation.
A boolean value which returns true if the element is a submittable element that is a candidate for constraint validation.
Checks for validity of the control and emits the invalid event if it invalid.
Checks for validity of the control and shows the browser message if it invalid.
Sets a custom validation message for the control.
As long as message
is not empty, the control is considered invalid.
Decrements the value of the control by n
steps multiplied by
the step factor.
Increments the value of the control by n
steps multiplied by the
step factor.
Rating provides insight regarding others' opinions and experiences, and can allow the user to submit a rating of their own
Element
igc-rating
Fires
igcChange - Emitted when the value of the control changes.
Fires
igcHover - Emitted when hover is enabled and the user mouses over a symbol of the rating.
Csspart
base - The main wrapper which holds all of the rating elements.
Csspart
label - The label part.
Csspart
value-label - The value label part.
Csspart
symbols - A wrapper for all rating symbols.
Csspart
symbol - The part of the encapsulated default symbol.
Csspart
full - The part of the encapsulated full symbols.
Csspart
empty - The part of the encapsulated empty symbols.
Cssproperty
--symbol-size - The size of the symbols.
Cssproperty
--symbol-full-color - The color of the filled symbol.
Cssproperty
--symbol-empty-color - The color of the empty symbol.
Cssproperty
--symbol-full-filter - The filter(s) used for the filled symbol.
Cssproperty
--symbol-empty-filter - The filter(s) used for the empty symbol.