toloka.client.project.template_builder.helpers.TransformHelperV1
| Source code
TransformHelperV1( self, into: Optional[Any] = None, items: Optional[Union[BaseComponent, List[Any]]] = None, *, version: Optional[str] = '1.0.0')
Creates a new array by transforming elements of another array.
For example, you can create an array of view.image
components from an array of links to images.
For more information, see helper.transform.
Parameters | Type | Description |
---|---|---|
into | Optional[Any] | The template of an element of the new array. To insert values from the source array use the LocalData component with the data |
items | Optional[Union[BaseComponent, List[Any]]] | The source array. |
Last updated: August 28, 2023