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

A view used to highlight important information.

For more information, see view.alert.

Parameters description

ParametersTypeDescription
contentOptional[BaseComponent]

The content.

themeOptional[Union[BaseComponent, Theme]]

The theme that sets the background color. The default color is blue.

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