futureworkz/elm-autocomplete/1.0.0

NOTE: the latest version is 1.0.2

Autocomplete.View

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

Type

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

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

type alias EventMapper a msg =
{ onSelect : msg
, mapHtml : 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