bgrosse-midokura / composable-form / Form.Base.RadioField

This module contains a reusable RadioField type.

Definition


type alias RadioField values =
Form.Field.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 custom view code.


type alias Attributes =
{ label : String
, options : List ( String
, String )
, htmlAttributes : List ( String
, String ) 
}

The attributes of a RadioField.

You need to provide these to:

Helpers

form : (RadioField values -> field) -> Form.Base.FieldConfig Attributes String values output -> Form.Base.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.