Toloka documentation


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

    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

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 when the box is empty. Use it to provide an example or a hint for the response.

resizable Optional[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.

rows Optional[Union[BaseComponent, float]]

The height of the text box in lines.

hint Optional[Any]

Hint text.

label Optional[Any]

Label above the component.

validation Optional[BaseComponent]

Validation based on condition.