hecrj/composable-form/6.0.1

NOTE: the latest version is 8.0.1

Form.Base.RangeField

This module contains a reusable RangeField type.

Definition

type alias RangeField number values =
Field (Attributes number) (Maybe number) 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 number =
{ label : String
, step : number
, min : Maybe number
, max : Maybe number
}

The attributes of a RangeField.

You need to provide these to:

Helpers

(RangeField number values -> field)
-> Config number 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.