<dy-rate>
A star rating component that allows users to rate items with customizable total stars and half-star support.
Example
Loading...
<dy-rate
.value=${3.5}
.total=${6}
@change=${(evt) => evt.target.value = evt.detail}></dy-rate>
API
DuoyunRateElement
Extends TapRateElement
TapRateElement
Shadow DOM; Extends GemElement
TapRateElement Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
value(value) |
Yes | number |
total(total) |
Yes | number |
disabled(disabled) |
Yes | boolean |
readonly(readonly) |
Yes | boolean |
change |
Emitter<number> |
TapRateElement Other
| Type | Value |
|---|---|
| Event | change |
| Part | star |
