lenards/elm-ui-patternfly/3.0.0

NOTE: the latest version is 4.0.2

PF6.TextArea

PF6 TextArea component

A multi-line text input for gathering longer text content.

See: https://www.patternfly.org/components/text-area

Definition

type TextArea msg

Opaque TextArea type

Resize direction

Constructor

{ value : String
, onChange : String -> msg
}
-> TextArea msg

Construct a TextArea

textArea { value = model.description, onChange = DescriptionChanged }

Content modifiers

withLabel : String -> TextArea msg -> TextArea msg

Set the visible label

withPlaceholder : String -> TextArea msg -> TextArea msg

Set placeholder text

withRows : Int -> TextArea msg -> TextArea msg

Set the number of visible rows

Disable the textarea

Mark the textarea as required

Validation modifiers

Success validation state (green border)

Danger/error validation state (red border)

withHelperText : String -> TextArea msg -> TextArea msg

Set helper text below the input

Resize modifiers

Allow vertical resizing only

Allow horizontal resizing only

Allow resizing in both directions

Rendering

toMarkup : TextArea msg -> Element msg

Render the TextArea as an Element msg