axelerator/fancy-forms/4.2.0

NOTE: the latest version is 7.0.1

FancyForms.Widgets.Int

An integer input widget.

integerInput : List (Attribute Msg) -> IntInput customError

A widget that collects an Int

type alias IntInput customError =
Widget Model Msg Int customError

Signature for an input widget that collects an Int

type Msg

Messages for the IntInput

Validators

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

A validator function that ensures the value is greater than x

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

A validator function that ensures the value is less than x