hecrj/composable-form/2.2.3

NOTE: this package is not compatible with Elm 0.19.1

Form.Base.RangeField

This module contains a reusable RangeField type.

Definition

type alias RangeField values =
Field Attributes Float values

Represents a range 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 =
{ label : String
, step : Float
, min : Maybe Float
, max : Maybe Float
}

The attributes of a RangeField.

You need to provide these to:

Helpers

(RangeField values -> field)
-> FieldConfig Attributes Float values output
-> Form values output field

Builds a Form with a single RangeField.

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