axelerator / fancy-forms / FancyForms.Widgets.Float

An float input widget.

floatInput : List (Html.Attribute Msg) -> FloatInput customError

A widget that collects an Float


type alias FloatInput customError =
FancyForms.FormState.Widget Model Msg Basics.Float customError

Signature of an input widget that collects a Float


type Msg

Messages that can be sent to the float input

Validators

greaterThan : Basics.Float -> Basics.Float -> List (FancyForms.FormState.Error customError)

A validator function that ensures the value is greater than x

lesserThan : Basics.Float -> Basics.Float -> List (FancyForms.FormState.Error customError)

A validator function that ensures the value is less than x