hecrj/composable-form/2.1.0

NOTE: this package is not compatible with Elm 0.19.1

Form.Base.SelectField

This module contains a reusable SelectField type.

Definition

type alias SelectField values =
Field Attributes String values

Represents a select 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
, options : List ( String, String )
}

The attributes of a SelectField.

You need to provide these to:

Helpers

(SelectField values -> field)
-> FieldConfig Attributes String values output
-> Form values output field

Builds a Form with a single SelectField.

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