toloka.client.project.template_builder.plugins.TolokaPluginV1 | Source code
TolokaPluginV1( self, kind: Optional[TolokaPluginLayout.Kind] = None, *, task_width: Optional[Union[BaseComponent, float]] = None, notifications: Optional[Union[BaseComponent, List[BaseComponent]]] = None, version: Optional[str] = '1.0.0')A plugin with extra settings for tasks in Toloka.
For more information, see plugin.toloka.
| Parameters | Type | Description |
|---|---|---|
layout | Optional[Union[BaseComponent, TolokaPluginLayout]] | Settings for the task appearance in Toloka. |
notifications | Optional[Union[BaseComponent, List[BaseComponent]]] | Notifications shown at the top of the page. |
Examples:
Setting the width of the task block on a page.
import toloka.client.project.template_builder as tbtask_width_plugin = tb.plugins.TolokaPluginV1( kind='scroll', task_width=400,)Last updated: August 28, 2023