TextViewV1

toloka.client.project.template_builder.view.TextViewV1 | Source code

TextViewV1(
self,
content: Optional[Any] = None,
*,
hint: Optional[Any] = None,
label: Optional[Any] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

A view for displaying a text.

For more information, see view.text.

Attributes: content: The text. To insert a new line, use \n.

Example:

import toloka.client.project.template_builder as tb
text_view = tb.view.TextViewV1(tb.data.InputData('input_field_name'), label='My label:')

Parameters description

ParametersTypeDescription
hintOptional[Any]

A hint text.

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