ColumnsLayoutV1

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

ColumnsLayoutV1(
self,
items: Optional[Union[BaseComponent, List[BaseComponent]]] = None,
*,
full_height: Optional[Union[BaseComponent, bool]] = None,
min_width: Optional[Union[BaseComponent, float]] = None,
ratio: Optional[Union[BaseComponent, List[Union[BaseComponent, float]]]] = None,
vertical_align: Optional[Union[BaseComponent, VerticalAlign]] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

A layout with columns.

For more information, see layout.columns.

Parameters description

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

A list of components. Every component is placed in an individual column.

full_heightOptional[Union[BaseComponent, bool]]

A height mode:

  • True — The component occupies all available vertical space. Columns have individual scrolling.
  • False — The height of the component is determined by the highest column.
min_widthOptional[Union[BaseComponent, float]]

The minimum width of the component when columns are used. If the component is narrower than min_width, then all content is shown in one column.

ratioOptional[Union[BaseComponent, List[Union[BaseComponent, float]]]]

A list of relative column widths.

vertical_alignOptional[Union[BaseComponent, VerticalAlign]]

The vertical alignment of column content.

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