hecrj/composable-form/1.0.3

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 values =
Field Attributes Float values

Represents a number field.

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

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

The attributes of a NumberField.

You need to provide these to:

Helpers

(NumberField values -> field)
-> FieldConfig Attributes Float 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.