TextareaFieldV1

toloka.client.project.template_builder.fields.TextareaFieldV1 | Source code

TextareaFieldV1(
self,
data: Optional[BaseComponent] = None,
*,
disabled: Optional[Union[BaseComponent, bool]] = None,
placeholder: Optional[Any] = None,
resizable: Optional[Union[BaseComponent, bool]] = None,
rows: Optional[Union[BaseComponent, float]] = None,
hint: Optional[Any] = None,
label: Optional[Any] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

Box for entering multi-line text.

Use in tasks that require an extended response. For single-line responses, use the field.text component.

The size of the box does not automatically adjust to the length of the text. Tolokers can change the height by dragging the lower-right corner. To change the default size of the box, use the rows property.

Note that formatting is not available in the text box.

Parameters Description

ParametersTypeDescription
dataOptional[BaseComponent]

Data with values that will be processed or changed.

disabledOptional[Union[BaseComponent, bool]]

If True, editing is not available.

placeholderOptional[Any]

A semi-transparent label that is shown when the box is empty. Use it to provide an example or a hint for the response.

resizableOptional[Union[BaseComponent, bool]]

Changing the box size. When set to True (the default value), the Toloker can change the height. To prevent resizing, set the value to False.

rowsOptional[Union[BaseComponent, float]]

The height of the text box in lines.

hintOptional[Any]

Hint text.

labelOptional[Any]

Label above the component.

validationOptional[BaseComponent]

Validation based on condition.

Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming