gribouille / elm-multiselect / MultiSelect

Multiselect component.

Data


type Config msg

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


type State

Opaque type to manage the states of component.

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

Config constructor.

init : List String -> State

Initialize the component state.

values : State -> List String

Get the selected values.

View

view : Config msg -> State -> Html msg

Component view.