Toloka documentation

TextFieldV1

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 component that allows entering a single line of text.

Parameters Description

Parameters Type Description
data Optional[BaseComponent]

Data with values that will be processed or changed.

disabled Optional[Union[BaseComponent, bool]]

If true, editing is not available.

placeholder Optional[Any]

A semi-transparent label that is shown in the box when it is empty.

hint Optional[Any]

Hint text.

label Optional[Any]

Label above the component.

validation Optional[BaseComponent]

Validation based on condition.