nixCodeX / elm-bootstrap / 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 : Basics.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

disabled : Option msg

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 (Html.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

success : Option msg

Option to add a success marker icon for your textarea.

danger : Option msg

Option to add a danger marker icon for your textarea.