Bernardoow / elm-rating-component / Rating

A Rating for Elm

The exposes

defaultModel : Model


type Msg
    = Click Basics.Int
    | MouseOver Basics.Int
    | MouseOut

The type representing messages that are passed inside the Rating.

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

Simple Update for the do work.

view : Model -> Html Msg

Simple View


type alias Model =
{ rating : Maybe Basics.Int
, quantity : Basics.Int
, svgDefault : Svg Msg
, svgSelected : Svg Msg
, svgOver : Svg Msg
, svgParentAtributes : List ( String
, String )
, svgParentClass : List ( String
, Basics.Bool )
, ratingPercent : Basics.Float
, isOver : Basics.Bool
, ratingOver : Maybe Basics.Int
, readOnly : Basics.Bool 
}

The type of The Rating.