API REFERENCE · FORM CONTROLS
<dj-rate>
Star rating (0..max). Form-associated. (Half-step allowHalf accepted; full-star core.)
npm install @dojo-ng/rate
import "@dojo-ng/rate";
Properties
| Property | Attribute | Type | Default |
|---|---|---|---|
max |
max |
number |
5 |
value |
value |
number |
0 |
allowHalf |
allow-half |
boolean |
false |
readonly |
readonly |
boolean |
false |
name |
name reflected |
string |
None |
label |
label |
string |
None |
Events
change
CSS custom properties
| Property | Default | Description |
|---|---|---|
--dj-rate-size | 1.5rem | Size of one star. |
Methods
checkValidity()restoreFormState(state: File | string | FormData | null)