toloka.client.project.template_builder.fields.SelectFieldV1
| Source code
SelectFieldV1( self, data: Optional[BaseComponent] = None, options: Optional[Union[BaseComponent, List[Union[BaseComponent, Option]]]] = None, *, placeholder: Optional[Any] = None, hint: Optional[Any] = None, label: Optional[Any] = None, validation: Optional[BaseComponent] = None, version: Optional[str] = '1.0.0')
A field for selecting from a drop-down list of options.
For more information, see field.select.
Parameters | Type | Description |
---|---|---|
data | Optional[BaseComponent] | A data path. |
options | Optional[Union[BaseComponent, List[Union[BaseComponent, Option]]]] | A list of options. |
placeholder | Optional[Any] | A text that is shown if no option is selected. |
hint | Optional[Any] | A hint. |
label | Optional[Any] | A label above the component. |
validation | Optional[BaseComponent] | Validation rules. |
Last updated: August 28, 2023