Toloka documentation

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

Parameters Type Description
controls Optional[BaseComponent]

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

items Optional[Union[BaseComponent, List[BaseComponent]]]

An array of data blocks.

min_item_width Optional[Union[BaseComponent, float]]

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

validation Optional[BaseComponent]

Validation based on condition.