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'
)

The component displays several data blocks of the same width on a single horizontal panel.

For example, you can use this to compare several photos.

You can set the minimum width for data blocks.

Parameters Description

ParametersTypeDescription
controlsOptional[BaseComponent]

Components that let Tolokers perform the required actions. For example: field.checkbox-group or field.button-radio-group.

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

An array of data blocks.

min_item_widthOptional[Union[BaseComponent, float]]

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

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