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

Bootstrap provides several form control styles, layout options, and custom components for creating a wide variety of forms.

Forms

form : List (Attribute msg) -> List (Html msg) -> Html msg

Create an Html form element

formInline : List (Attribute msg) -> List (Html msg) -> Html msg

Create an inline form for placing elements horizontally.

Note: You should stick to inline elements to get the effect you are probably expecting!

Groups

Use form groups to group items together (label + input is a typical simple example)

group : List (Option msg) -> List (Html msg) -> Html msg

Use the group function to create a grouping of related form elements. It just creates a div container with a form-group Bootstrap class. Typically you use this for vertically laid out forms.

  • options List of options for customizing the group
  • children List of children
label : List (Attribute msg) -> List (Html msg) -> Html msg

Create a form control label. Suitable for use in form groups.

  • attributes List of attributes
  • children List of child elements
type Option msg

Opaque type representing options for customing form groups.

attrs : List (Attribute msg) -> Option msg

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

Grid layouts

row : List (Option msg) -> List (Col msg) -> Html msg

Create a form group row element. Use this function when creating horizontal forms (in various shapes) It reuses the options from Bootstrap.Grid.Row which gives you a ton of customization options for how to layout columns within this row.

  • options List of Bootstrap.Grid.Row options
  • cols List of column elements (see col or colLabel)
col : List (Option msg) -> List (Html msg) -> Col msg

Create a Grid column for use in form rows. It reuses the options from Bootstrap.Grid.Col which gives you a ton of customization options for layout.

  • options List of Bootstrap.Grid.Col options
  • children List of child elements
colLabel : List (Option msg) -> List (Html msg) -> Col msg

Create a label element as a grid column to be used in a form row. Handy for use in horizontal form in various shapes.

  • options List of Bootstrap.Grid.Col options for layout customization
  • children List of child elements
colLabelSm : List (ColOption msg) -> List (Html msg) -> Col msg

Create a shorter (height) colLabel

colLabelLg : List (ColOption msg) -> List (Html msg) -> Col msg

Create a taller colLabel

type Col msg

Opaque type representing a column in a form row

Validation

validFeedback : List (Attribute msg) -> List (Html msg) -> Html msg

Function to provide validation feedback information for valid inputs

invalidFeedback : List (Attribute msg) -> List (Html msg) -> Html msg

Function to provide validation feedback information for invalid inputs

Handy helpers

help : List (Attribute msg) -> List (Html msg) -> Html msg

Creates a block level text element, suitable for providing context related help text in form groups.

helpInline : List (Attribute msg) -> List (Html msg) -> Html msg

Creates an inline text element, suitable for providing context related help text for inputs.