Bernardoow/elm-rating-component/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Rating

A Rating for Elm

The exposes

defaultModel : Model
type Msg
= Click Int
| MouseOver Int
| MouseOut

The type representing messages that are passed inside the Rating.

update : Msg -> Model -> ( Model, Cmd Msg )

Simple Update for the do work.

view : Model -> Html Msg

Simple View

type alias Model =
{ rating : Maybe Int
, quantity : Int
, colorDefault : String
, colorSelected : String
, colorOver : String
, ratingPercent : Float
, isOver : Bool
, ratingOver : Maybe Int
, readOnly : Bool
}

The type of The Rating.