Rating - Web Component
...
Browser support
Parameters
The Web component uses a <z-rating>
tag.
The parametrization of the component can be done with the following custom HTML params:
Name | Type | Description |
---|---|---|
value | number | The current score of the rating. It can be a number between 0 and 5. |
readonly (optional) | boolean | If `true`, the rating will be displayed as a score. |
disabled (optional) | boolean | Blocks the interaction with the input component. |
show-score (optional) | boolean | If `true`, the rating will be displayed with a score. |
The events emitted from the component are:
Name | Payload | Description |
---|---|---|
onchange | number | Returns the new value of the "value" attribute |