hecrj/composable-form/1.0.2

NOTE: this package is not compatible with Elm 0.19.1

Form.Base.RadioField

This module contains a reusable RadioField type.

Definition

type alias RadioField values =
Field Attributes String values

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

The attributes of a RadioField.

You need to provide these to:

Helpers

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

Builds a Form with a single RadioField.

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