axelerator/fancy-forms/4.0.0

NOTE: the latest version is 7.0.1

FancyForms.Widgets.Float

An float input widget.

floatInput : List (Attribute Msg) -> FloatInput customError

A widget that collects an Float

type alias FloatInput customError =
Widget Model Msg Float customError

Signature of an input widget that collects a Float

Validators

greaterThan : Float -> Float -> List (Error customError)

A validator function that ensures the value is greater than x

lesserThan : Float -> Float -> List (Error customError)

A validator function that ensures the value is less than x