OpenCloseActionV1

toloka.client.project.template_builder.actions.OpenCloseActionV1 | Source code

OpenCloseActionV1(
self,
view: Optional[Union[BaseComponent, RefComponent]] = None,
*,
version: Optional[str] = '1.0.0'
)

This component changes the display mode of another component by opening or closing it.

What happens to the component depends on the type of component: view.image — expands the image to full screen. view.collapse — expands or collapses a collapsible section of content.

Parameters Description

ParametersTypeDescription
viewOptional[Union[BaseComponent, RefComponent]]

Points to the component to perform the action with.

Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming