This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
A non-empty list in which exactly one element is always selected.
version 1.2.0
license BSD-3-Clause
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.2.0
Committed At 2018-08-19 03:20:12 UTC
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1

Modules

README

Yet another SelectList implementation

A SelectList is a non-empty list which always has exactly one element selected. It is an example of a list zipper.

Inspired by these modules

mapBy is the main function in this package. Use mapBy in view.

    view : SelectList String -> Html Msg
    view selectList =
        ul [] <|
            SelectList.mapBy
                (\position item ->
                    li [ onClick (Set item) ]
                        [ text <| toString <| SelectList.index item
                        , toString <| SelectList.selected item
                        ]
                )
                selectList