axelerator / fancy-forms / FancyForms.Widgets.Int

An integer input widget.

integerInput : List (Html.Attribute Msg) -> IntInput customError

A widget that collects an Int


type alias IntInput customError =
FancyForms.FormState.Widget Model Msg Basics.Int customError

Signature for an input widget that collects an Int


type Msg

Messages for the IntInput

Validators

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

A validator function that ensures the value is greater than x

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

A validator function that ensures the value is less than x