nixCodeX/elm-bootstrap/2.0.1

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

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.1/

Bootstrap.ButtonGroup

Group a series of buttons together on a single line with the button group.

Button group

button : List (Option msg) -> List (Html msg) -> ButtonItem msg

Create a button than can be composed in a button group

linkButton : List (Option msg) -> List (Html msg) -> LinkButtonItem msg

Create a linkButton that can be composed in a button group

radioButton : Bool -> List (Option msg) -> List (Html msg) -> RadioButtonItem msg

Create a radioButton that can be composed in a button group

Bool
-> List (Option msg)
-> List (Html msg)

Create a checkboxButton that can be composed in a button group

buttonGroup : List (Option msg) -> List (ButtonItem msg) -> Html msg

Create a group of related buttons

ButtonGroup.buttonGroup
    [ ButtonGroup.small ]
    [ ButtonGroup.button [ Button.primary ] [ text "Primary" ]
    , ButtonGroup.button [ Button.secondary ] [ text "Secondary" ]
    ]
linkButtonGroup : List (Option msg) -> List (LinkButtonItem msg) -> Html msg

Create a group of related link buttons. Parameters are identical to buttonGroup

radioButtonGroup : List (Option msg) -> List (RadioButtonItem msg) -> Html msg

Create a group of mutually-exclusive radio buttons. Parameters are identical to buttonGroup

ButtonGroup.radioButtonGroup
    [ ButtonGroup.small ]
    [ ButtonGroup.radioButton True [ Button.primary ] [ text "On" ]
    , ButtonGroup.radioButton False [ Button.primary ] [ text "Off" ]
    ]
checkboxButtonGroup : List (Option msg) -> List (CheckboxButtonItem msg) -> Html msg

Create a group of related checkbox buttons. Parameters are identical to buttonGroup

ButtonGroup.checkboxButtonGroup
    [ ButtonGroup.small ]
    [ ButtonGroup.checkboxButton True [ Button.primary ] [ text "Bold" ]
    , ButtonGroup.checkboxButton True [ Button.primary ] [ text "Italic" ]
    ]
type ButtonItem msg

Opaque type representing a button, for composing button groups

Opaque type representing a link button, for composing button groups

Opaque type representing a radio button, for composing button groups

Opaque type representing a checkbox button, for composing button groups

Group options

Option to make all buttons in the given group small

Option to make all buttons in the given group large

Option to make all buttons stack vertically for a button group

attrs : List (Attribute msg) -> Option msg

When you need to customize the group element with standard Html.Attribute use this function to create it as a group option

type Option msg

Opaque type representing the possible styling options for a button group

Button toolbar

toolbar : List (Attribute msg) -> List (GroupItem msg) -> Html msg

Create a toolbar of buttons by composing button groups. Separate groups by margins on the button groups.

ButtonGroup.toolbar []
    [ ButtonGroup.groupItem []
        []


    -- should contain a list of button items
    , ButtonGroup.groupItem
        [ Button.attrs [ class "ml-2" ] ]
        []


    -- should contain a list of button items
    ]
  • attributes List of attributes to customize the toolbar element
  • items List of button group (items)
buttonGroupItem : List (Option msg) -> List (ButtonItem msg) -> GroupItem msg

Create a button group that can be composed in a toolbar

The parameters are identical as for buttonGroup

linkButtonGroupItem : List (Option msg) -> List (LinkButtonItem msg) -> GroupItem msg

The same as buttonGroupItem, but for link buttons

radioButtonGroupItem : List (Option msg) -> List (RadioButtonItem msg) -> GroupItem msg

The same as buttonGroupItem, but for radio buttons

The same as buttonGroupItem, but for checkbox buttons

type GroupItem msg

Opaque type representing a button group. Used when composing a button toolbar