toloka.client.project.template_builder.fields.TextFieldV1
| Source code
TextFieldV1( self, data: Optional[BaseComponent] = None, *, disabled: Optional[Union[BaseComponent, bool]] = 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 entering a single text line.
For more information, see field.text.
Parameters | Type | Description |
---|---|---|
data | Optional[BaseComponent] | A data path. |
disabled | Optional[Union[BaseComponent, bool]] | Disabling the field:
Default value: |
placeholder | Optional[Any] | A text that is shown if no value is entered. |
hint | Optional[Any] | A hint. |
label | Optional[Any] | A label above the component. |
validation | Optional[BaseComponent] | Validation rules. |
Last updated: August 28, 2023