CollapseViewV1

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

CollapseViewV1(
self,
content: Optional[BaseComponent] = None,
*,
label: Optional[Any] = None,
default_opened: Optional[Union[BaseComponent, bool]] = None,
hint: Optional[Any] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

Expandable block.

Lets you add hidden content that doesn't need to be shown initially or that takes up a large space.

The block heading is always visible.

If you set the defaultOpened property to true, the block is expanded immediately, but it can be collapsed.

Parameters Description

ParametersTypeDescription
contentOptional[BaseComponent]

Content hidden in the block.

labelOptional[Any]

Block heading.

default_openedOptional[Union[BaseComponent, bool]]

If true, the block is immediately displayed in expanded form. By default, false (the block is collapsed).

hintOptional[Any]

Hint text.

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