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 | Type | Description |
---|---|---|
links | Optional[Union[BaseComponent, List[Union[BaseComponent, Link]]]] | A list of links. |
hint | Optional[Any] | A hint text. |
label | Optional[Any] | A label above the component. |
validation | Optional[BaseComponent] | Validation rules. |
Examples:
import toloka.client.project.template_builder as tblinks = 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