axelerator/fancy-forms/7.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

type Msg

Messages that can be sent to the float input

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