ozmat / elm-forms / Forms.Value

Value represents the inner value of a Field

Values


type alias Value =
Internal.Value

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

Default Values

defaultString : Value

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 : Basics.Bool -> Value

Creates a bool Value

bool True

Access Values

getString : Value -> Maybe String

Returns the value of a string Value

getBool : Value -> Maybe Basics.Bool

Returns the value of a bool Value