gribouille / elm-combo / Combo

Combobox component.

Data


type Config msg

Opaque type to configure the component (construct with the config function).


type alias Model =
List String

Combo options.


type State

Opaque type to manage the states of component.

config : (State -> msg) -> List String -> Config msg

Config constructor.

init : String -> State

Initialize the component state.

value : State -> String

Get the selected value.

View

view : Config msg -> State -> Html msg

Component view.