nixCodeX/elm-bootstrap/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 c2a3c6010689 of https://github.com/aDifferentJT/elm-bootstrap (zip prefix nixCodeX-elm-bootstrap-c2a3c60/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 f4dddcc832f62240e22074da37ce3b8a1f2e9a0c.

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/3.1.1/

Bootstrap.Form.Fieldset

Fieldset is a handy block level element you can use to group form elements. Fieldset comes with the added benefit of disabling all child controls when we set it's disabled attribute.

General

type Config msg

Opaque representation of the view configuration for a fieldset.

view : Config msg -> Html msg

View a fieldset standalone. To create a fieldset you start off with a basic configuration which you can compose of several optional elements.

Fieldset.config
    |> Fieldset.asGroup
    |> Fieldset.legend [] [ text "Radio buttons" ]
    |> Fieldset.children
        (Radio.radioList "myradios"
            [ Radio.create [] "Option one"
            , Radio.create [] "Option two"
            , Radio.create [ Radio.disabled True ] "I'm disabled"
            ]
        )
    |> Fieldset.view

Create default config for a fieldset

Customization

asGroup : Config msg -> Config msg

Make the fieldset a field group

disabled : Bool -> Config msg -> Config msg

Disable a fieldset

children : List (Html msg) -> Config msg -> Config msg
legend : List (Attribute msg) -> List (Html msg) -> Config msg -> Config msg

Provide a legend for a set of fields

attrs : List (Attribute msg) -> Config msg -> Config msg

When you need to customize a fieldset with standard Html.Attribute attributes use this function