ozmat/elm-forms/2.0.0

NOTE: this package is not compatible with Elm 0.19.1

Forms.Value

Value represents the inner value of a Field

Values

type alias Value =
Value

A Value can be a String (input/select field) or a Bool (checkbox field)

Default Values

Is the default string Value

""
defaultBool : Value

Is the default bool Value

False

Creation

string : String -> Value

Creates a string Value

string "some input value"
bool : Bool -> Value

Creates a bool Value

bool True

Access Values

getString : Value -> Maybe String

Returns the value of a string Value

getBool : Value -> Maybe Bool

Returns the value of a bool Value