hecrj / composable-form / Form.Base.CheckboxField

This module contains a reusable CheckboxField type.

Definition


type alias CheckboxField values =
Form.Field.Field Attributes Basics.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

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