A simple five star rating component. Uses unicode star characters ★ & ☆ (U+2605 & U+2606) by default. initialCustomState allows for custom Html elements to be used
Initial rating state. Sets rating to zero. Uses html passed in by user
Render the component. Accepts a list of css class names and a Rating.State. Note that the component uses text characters to display the stars, so use css accordingly.
Rating.classView [ "cssClass1", "cssClass2" ] ratingStateRender the component. Accepts a list of style tuples and a Rating.State. Note that the component uses text characters to display the stars, so use css accordingly.
Rating.styleView [ ( "color", "red" ) ] ratingStateUpdate the state of the rating component.
RatingMsg msg ->
( { model | ratingState = (Rating.update msg model.ratingState) }, Cmd.none )Opaque type obscuring rating model
Opaque type obscuring rating messages
Initial rating state. Sets rating to zero. Uses "★" and "☆"