LinkGroupViewV1

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

LinkGroupViewV1(
self,
links: Optional[Union[BaseComponent, List[Union[BaseComponent, Link]]]] = None,
*,
hint: Optional[Any] = None,
label: Optional[Any] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

A group of links.

For more information, see view.link-group.

Parameters description

ParametersTypeDescription
linksOptional[Union[BaseComponent, List[Union[BaseComponent, Link]]]]

A list of links.

hintOptional[Any]

A hint text.

labelOptional[Any]

A label above the component.

validationOptional[BaseComponent]

Validation rules.

Examples:

import toloka.client.project.template_builder as tb
links = tb.view.LinkGroupViewV1(
[
tb.view.LinkGroupViewV1.Link(
'https://any.com/useful/url/1',
'Example1',
),
tb.view.LinkGroupViewV1.Link(
'https://any.com/useful/url/2',
'Example2',
),
]
)

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