A star rating: a row of max stars, filled up to rating. Clicking or dragging sets the
rating (with a live hover preview), unless readOnly. onChange fires with the new 1-based
rating (0 when cleared by clicking the current single star). Uses the built-in STAR glyph.
Constructor
new(max:Int = 5, rating:Int = 0, ?onChange:Int ‑> Void)
Parameters:
max | number of stars |
|---|---|
rating | the initial rating |
onChange | fired when the rating changes |