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 | Type | Description |
---|---|---|
content | Optional[BaseComponent] | The content. |
theme | Optional[Union[BaseComponent, Theme]] | The theme that sets the background color. The default color is blue. |
hint | Optional[Any] | A hint text. |
label | Optional[Any] | A label above the component. |
validation | Optional[BaseComponent] | Validation rules. |
Last updated: August 28, 2023