Toloka documentation

ListViewV1

toloka.client.project.template_builder.view.ListViewV1 | Source code

ListViewV1(
    self,
    items: Optional[Union[BaseComponent, List[BaseComponent]]] = None,
    *,
    direction: Optional[Union[BaseComponent, ListDirection]] = None,
    size: Optional[Union[BaseComponent, ListSize]] = None,
    hint: Optional[Any] = None,
    label: Optional[Any] = None,
    validation: Optional[BaseComponent] = None,
    version: Optional[str] = '1.0.0'
)

Block for displaying data in a list.

Parameters Description

Parameters Type Description
items Optional[Union[BaseComponent, List[BaseComponent]]]

Array of list items.

direction Optional[Union[BaseComponent, ListDirection]]

Determines the direction of the list.

size Optional[Union[BaseComponent, ListSize]]

Specifies the size of the margins between elements. Acceptable values in ascending order: s, m (default value).

hint Optional[Any]

Hint text.

label Optional[Any]

Label above the component.

validation Optional[BaseComponent]

Validation based on condition.