jaredramirez / elm-field / Field.Float

A pre-applied Float version of the Field type, and validation functions to go along with them.

Base


type alias Field =
Field Basics.Float String

A field to hold a Float value, with an error type of String. See Field


type alias ViewConfig msg =
Field.ViewConfig Basics.Float String msg

A view config object for Float fields. See ViewConfig


type alias ValidationFunc =
Field.ValidationFunc Basics.Float String

A validation function for a Float Field

Validation

greaterThan : Basics.Float -> ValidationFunc

Enforce that a field is greater than x

lessThan : Basics.Float -> ValidationFunc

Enforce that a field is greater than x