Toloka documentation

BarsLayoutV1

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

BarsLayoutV1(
    self,
    content: Optional[BaseComponent] = None,
    *,
    bar_after: Optional[BaseComponent] = None,
    bar_before: Optional[BaseComponent] = None,
    validation: Optional[BaseComponent] = None,
    version: Optional[str] = '1.0.0'
)

A component that adds top and bottom bars to the content.

You can use other components inside each part of this component, such as images, text, or options.

The top bar is located at the top edge of the component, and the bottom one is at the bottom edge. The content is placed between the bars and takes up all available space.

Parameters Description

Parameters Type Description
content Optional[BaseComponent]

The main content.

bar_after Optional[BaseComponent]

The bar displayed at the bottom edge of the component.

bar_before Optional[BaseComponent]

The bar displayed at the top edge of the component.

validation Optional[BaseComponent]

Validation based on condition.