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'
)

A field for entering multiline text.

For more information, see field.textarea.

Parameters description

ParametersTypeDescription
dataOptional[BaseComponent]

A data path.

disabledOptional[Union[BaseComponent, bool]]
  • False — A Toloker can edit the field.
  • True — The field is disabled.

Default value: False.

placeholderOptional[Any]

A text that is shown if the field is empty.

resizableOptional[Union[BaseComponent, bool]]
  • True — A Toloker can change the height of the field.
  • False — The field is not resizable.

Default value: True.

rowsOptional[Union[BaseComponent, float]]

The height of the field in text lines.

hintOptional[Any]

A hint.

labelOptional[Any]

A label above the component.

validationOptional[BaseComponent]

Validation rules.

Last updated: August 28, 2023

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