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 tbtext_view = tb.view.TextViewV1(tb.data.InputData('input_field_name'), label='My label:')
Parameters | Type | Description |
---|---|---|
hint | Optional[Any] | A hint text. |
label | Optional[Any] | A label above the component. |
validation | Optional[BaseComponent] | Validation rules. |
Last updated: August 28, 2023