futureworkz / elm-autocomplete / Autocomplete.Styled

Autocomplete.Styled exposes HTML.Styled events to be attached for input and every autocomplete choice.

Type


type alias Events msg =
{ inputEvents : List (Html.Styled.Attribute msg)
, choiceEvents : Basics.Int -> List (Html.Styled.Attribute msg) 
}

Record to hold the events to be attached for input and every autocomplete choice


type alias EventMapper a msg =
{ onSelect : msg
, mapHtml : Internal.Msg a -> msg 
}

Map Autocomplete Msg into your app's msg and also the msg to send when user selects a choice

Attributes

events : EventMapper a msg -> Events msg

Returns the events to be attached for input and every autocomplete choice