toloka.client.project.template_builder.fields.EmailFieldV1
| Source code
EmailFieldV1( self, data: Optional[BaseComponent] = None, *, placeholder: Optional[Any] = None, hint: Optional[Any] = None, label: Optional[Any] = None, validation: Optional[BaseComponent] = None, version: Optional[str] = '1.0.0')
Creates a field for entering an email address.
Checks that the text contains the @ character. You can set other conditions yourself.
Parameters | Type | Description |
---|---|---|
data | Optional[BaseComponent] | Data with values that will be processed or changed. |
placeholder | Optional[Any] | A semi-transparent label that is shown in an empty field. |
hint | Optional[Any] | Hint text. |
label | Optional[Any] | Label above the component. |
validation | Optional[BaseComponent] | Validation based on condition. |