Toloka documentation

ClassicViewSpec

toloka.client.project.view_spec.ClassicViewSpec | Source code

ClassicViewSpec(
    self,
    *,
    settings: Optional[ViewSpec.Settings] = None,
    script: Optional[str] = None,
    markup: Optional[str] = None,
    styles: Optional[str] = None,
    assets: Optional[Assets] = None
)

A classic view specification defined with HTML, CSS and JS.

For more information, see Toloka Requester's guide

Parameters Description

Parameters Type Description
script Optional[str]

JavaScript interface for the task.

markup Optional[str]

Task interface.

styles Optional[str]

CSS task interface.

assets Optional[Assets]

Linked files such as:

  • CSS styles
  • JavaScript libraries
  • Toloka assets with the $TOLOKA_ASSETS prefix Add items in the order they should be linked when running the task interface.