Payload

toloka.client.project.template_builder.actions.NotifyActionV1.Payload | Source code

Payload(
self,
content: Optional[Any] = None,
theme: Optional[Union[BaseComponent, Theme]] = None,
*,
delay: Optional[Union[BaseComponent, float]] = None,
duration: Optional[Union[BaseComponent, float]] = None
)

Popup parameters.

Parameters description

ParametersTypeDescription
contentOptional[Any]

Popup content. You can assign text or other components to the content.

themeOptional[Union[BaseComponent, Theme]]

A background color.

delayOptional[Union[BaseComponent, float]]

A delay in milliseconds before showing the popup.

durationOptional[Union[BaseComponent, float]]

A duration in milliseconds of showing the popup. It includes the delay.

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