SideBySideLayoutV1

toloka.client.project.template_builder.layouts.SideBySideLayoutV1 | Source code

SideBySideLayoutV1(
self,
controls: Optional[BaseComponent] = None,
items: Optional[Union[BaseComponent, List[BaseComponent]]] = None,
*,
min_item_width: Optional[Union[BaseComponent, float]] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

A layout with several blocks of the same width on a single horizontal panel.

For more information, see layout.side-by-side.

Parameters description

ParametersTypeDescription
controlsOptional[BaseComponent]

A component with controls.

itemsOptional[Union[BaseComponent, List[BaseComponent]]]

A list of blocks.

min_item_widthOptional[Union[BaseComponent, float]]

The minimum width of a block, at least 400 pixels.

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