jxxcarlson / elm-widget / Widget.TextField

Types


type Role
    = Primary
    | Secondary
    | Password


type Size
    = Bounded Basics.Int
    | Unbounded


type LabelPosition
    = LabelLeft
    | LabelAbove
    | LabelRight
    | NoLabel

Construct, render

make : (String -> msg) -> String -> String -> TextField msg

toElement : TextField msg -> Element msg

Options

withId : String -> TextField msg -> TextField msg

withHeight : Basics.Int -> TextField msg -> TextField msg

withLabelWidth : Basics.Int -> TextField msg -> TextField msg

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

withLabelPosition : LabelPosition -> TextField msg -> TextField msg

withFontColor : Element.Color -> TextField msg -> TextField msg

withBackgroundColor : Element.Color -> TextField msg -> TextField msg

withRole : Role -> TextField msg -> TextField msg

withTitle : String -> TextField msg -> TextField msg