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.
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:
How to set the task width on the task page.
task_width_plugin = tb.plugins.TolokaPluginV1( 'scroll', task_width=400,)