jxxcarlson / elm-widget / Widget.TextArea

Types


type alias Options =
{ role : Role
, selected : Basics.Bool
, backgroundColor : Element.Color
, fontColor : Element.Color
, selectedBackgroundColor : Element.Color
, selectedFontColor : Element.Color
, width : Basics.Int
, height : Basics.Int 
}


type Role
    = Primary
    | Secondary


type Size
    = Bounded Basics.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 : Basics.Int -> TextArea msg -> TextArea msg

withWidth : Basics.Int -> TextArea msg -> TextArea msg