hecrj/composable-form/3.0.0

NOTE: this package is not compatible with Elm 0.19.1

Form.Base.NumberField

This module contains a reusable NumberField type.

Definition

type alias NumberField number values =
Field (Attributes number) number values

Represents a number field.

Note: You should not need to care about this unless you are creating your own custom fields or writing custom view code.

type alias Attributes number =
{ label : String
, placeholder : String
, step : number
, min : Maybe number
, max : Maybe number
}

The attributes of a NumberField.

You need to provide these to:

Helpers

(NumberField number values -> field)
-> FieldConfig (Attributes number) number values output
-> Form values output field

Builds a Form with a single NumberField.

Note: You should not need to care about this unless you are creating your own custom fields.