hecrj/composable-form/2.0.1

NOTE: this package is not compatible with Elm 0.19.1

Form.Base.CheckboxField

This module contains a reusable CheckboxField type.

Definition

type alias CheckboxField values =
Field Attributes Bool values

Represents a checkbox 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 }

The attributes of a CheckboxField.

You need to provide these to:

Helpers

(CheckboxField values -> field)
-> FieldConfig Attributes Bool values output
-> Form values output field

Builds a Form with a single CheckboxField.

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