rundis/elm-bootstrap/5.0.0

NOTE: the latest version is 5.2.0

Bootstrap.Form.Textarea

This module allows you to create textarea elements.

Creating

textarea : List (Option msg) -> Html msg

Create a textarea element.

Textarea.textarea
    [ Textarea.id "myarea"
    , Textarea.rows 4
    , Textarea.onInput MyTextareaMsg
    ]

Options

id : String -> Option msg

Options/shorthand for setting the id of a textarea

rows : Int -> Option msg

Option/shorthand to set the rows attribute of a textarea

value : String -> Option msg

Shorthand for setting the value attribute of a textarea

Shorthand for setting the disabled attribute of a textarea

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

Shorthand for assigning an onInput handler for a textarea

attrs : List (Attribute msg) -> Option msg

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

type Option msg

Opaque type representing legal textarea configuration options

Validation

Option to add a success marker icon for your textarea.

Option to add a danger marker icon for your textarea.