AlertViewV1

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

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

The component creates a color block to highlight important information.

You can use both plain text and other visual components inside it.

Parameters Description

ParametersTypeDescription
contentOptional[BaseComponent]

Content of the block with important information.

themeOptional[Union[BaseComponent, Theme]]

Determines the block color.

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