nathanjohnson320/elm-ui-components/1.0.2

NOTE: the latest version is 2.3.0

Rerouted (fork, verified). The original repository is gone. This copy comes from a fork that still has the tag. The Lamdera package server serves a copy recovered from https://github.com/Natim/elm-ui-components (a fork).

What we checked: Rebuilt with git archive from commit 3c1e218006ec of https://github.com/Natim/elm-ui-components (a fork) (zip prefix nathanjohnson320-elm-ui-components-3c1e218/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 7fc7d2b9dc6d36d6564abd24a9ab1da5bc3a6bac.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/nathanjohnson320/elm-ui-components/zipball/1.0.2/

ElmUIC.Selector

A styled selector

type alias Selector =
{ kind : ColorSetting
, size : Size
, placeholder : String
, open : Bool
, options : List Option
, selected : Option
}

Base model for a selector

type alias Option =
{ key : String
, value : String
}

Individual items that display in the selector

defaultSelector : Selector

Instantiates the default properties of a selector

{ defaultNavbar | kind = Danger }
Theme
-> Selector
-> (Option -> msg)
-> List (Attribute msg)
-> List (Html msg)
-> Html msg

A styled nav using items and separators

selector defaultTheme
    { defaultSelector
        | placeholder = "Select a choice"
        , open = model.selectedOpen
        , options = model.options
        , selected = model.selected
        , kind = Theme.Danger
    }
    Select
    [ css
        [ width (px 200) ]
    ]
    []