nixCodeX/elm-bootstrap/2.0.6

NOTE: the latest version is 3.1.1

Renamed to aDifferentJT/elm-bootstrap. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as nixCodeX/elm-bootstrap still install under that name. 13 versions of 13 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/aDifferentJT/elm-bootstrap.

What we checked: The repo moved to github.com/aDifferentJT/elm-bootstrap. Rebuilt with git archive from commit 1b8076a95135 of https://github.com/aDifferentJT/elm-bootstrap (zip prefix nixCodeX-elm-bootstrap-1b8076a/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 f847da7d5ddb22fe6d0233a78d17c8dc566dda5c.

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/nixCodeX/elm-bootstrap/zipball/2.0.6/

Bootstrap.Form.Select

This module allows you to create Bootstrap styled select elements.

Creating

select : List (Option msg) -> List (Item msg) -> Html msg

Create a select

Select.select
    [ Select.id "myselect"
    , Select.onChange MySelectMsg
    ]
    [ Select.item [ value "1" ] [ text "Item 1" ]
    , Select.item [ value "2" ] [ text "Item 2" ]
    ]
custom : List (Option msg) -> List (Item msg) -> Html msg

Create a select with custom Bootstrap styling to make it look a little bit nicer than the default browser select element

item : List (Attribute msg) -> List (Html msg) -> Item msg

Create a select option element to be passed to a select

type Item msg

Opaque type representing a select option element

Options

id : String -> Option msg

Options/shorthand for setting the id of a select

Option to make a select shorter (height)

Option to make a select taller (height)

disabled : Bool -> Option msg

Shorthand for setting the disabled attribute of a select

onChange : (String -> msg) -> Option msg

Shorthand for assigning an onChange handler for a select

attrs : List (Attribute msg) -> Option msg

Use this function to handle any Html.Attribute option you wish for your select

type Option msg

Opaque type representing legal select options

Validation

Option to add a success marker icon for your select.

Option to add a danger marker icon for your select.