Configuration
Below is the full configuration available with defaults values:
"example" => [
"type" => "anomaly.field_type.boolean",
"config" => [
"default_value" => false,
"on_color" => "success",
"off_color" => "danger",
"on_text" => "YES",
"off_text" => "NO",
"mode" => "checkbox",
"label" => null,
]
]
Configuration
Key | Example | Description |
---|---|---|
default_value |
true |
The default value. |
on_color |
default |
The color of the "on" state. Valid options are |
off_color |
warning |
The color of the "off" state. Valid options are |
on_text |
Yeppers |
The text for the "on" state. |
off_text |
No way! |
The text for the "off" state. |
mode |
checkbox |
The input mode. Valid options are |
label |
Yes, I agree to these terms. |
For |