Import
import { NuiRating } from '@needless-ui/angular/rating';NuiRating
A radio group of stars, or a read-only picture of a rating.
| Name | Type | Default | Description |
|---|---|---|---|
valueTwo-way | number | null | null | The rating, or null. Also works with forms. |
maxInput | number | 5 | Number of stars. |
readonlyInput | boolean | false | Shows the value, to any fraction, instead of asking for one. |
disabledInput | boolean | false | Disables every star. |
clearableInput | boolean | false | Choosing the current star again clears the rating. |
nameInput | string | Name shared by the radio buttons. Generated by default. | |
starLabelInput | (value: number) => string | Accessible name of each star, as a function of its value. | |
readonlyLabelInput | (value: number, max: number) => string | Accessible name in read-only mode. |