Select components
#
Select fieldThe SelectField
component renders a select field.
- Component - simple
- Component - advanced
- API schema
#
PropsProp | Description |
---|---|
| string The name of the column in Contember schema where to store data. Required |
| ReactNode The label for the field. Required |
| string | { label: ReactNode, value: OptionallyVariableFieldValue, description: ReactNode, searchKeywords: string | undefined }[] The options for the field. You can use query language to filter the entities. Required |
| undefined | (EntityAccessor) => ReactNode A function that is called to render the option. |
| undefined | ReactElement A function that is called to render static the options. |
#
Multi select fieldThe MultiSelectField
renders a select field with posibility to select multiple options.
- Component
- API schema
#
PropsProp | Description |
---|---|
| string The name of the column in Contember schema where to store data. Required |
| ReactNode The label for the field. Required |
| string | { label: ReactNode, value: OptionallyVariableFieldValue, description: ReactNode, searchKeywords: string | undefined }[] The options for the field. You can use query language to filter the entities. Required |