jxxcarlson/elm-widget/3.0.0

NOTE: the latest version is 3.3.0

Widget.TextArea

Types

type alias Options =
{ role : Role
, selected : Bool
, backgroundColor : Color
, fontColor : Color
, selectedBackgroundColor : Color
, selectedFontColor : Color
, width : Int
, height : Int
}
type Role
= Primary
| Secondary
type Size
= Bounded Int
| Unbounded
type TextArea msg
= TextArea Options (String -> msg) String String

Construct, render, set options

make : (String -> msg) -> String -> String -> TextArea msg
toElement : TextArea msg -> Element msg
withHeight : Int -> TextArea msg -> TextArea msg
withWidth : Int -> TextArea msg -> TextArea msg