Dropdown
A single select dropdown. May contain multiselect in the future.
Example
{
type: "dropdown",
required: true,
name: "event",
label: "An welcher Veranstaltung möchtest Du teilnehmen?",
placeholder: "Bitte auswählen",
options: [
{
label: "Wandern in der Sophienhöhe",
value: "sophienhoehe",
},
{
label: "Grillen bei SENSORY-MINDS",
value: "barbecue",
},
],
}
Reference
placeholder
Text which will be displayed if no value exists / no option is selected.
| Type | Required |
|---|---|
| string | no |
options
Options which can be selected by the user.
| Type | Required |
|---|---|
| array of options | yes |
Type Definitions
Option
An object that identifies the data to be rendered as a checkbox.
Properties
| Name | Type | Description |
|---|---|---|
| value | string or number | Value which will be stored / used within the form |
| label | string | Label which will be displayed in the form. |
| [checked] | boolean | Optionally, defines if checkbox is checked. |