hecrj/composable-form/7.1.0

NOTE: the latest version is 8.0.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 custom view code.

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.