To work with data, use the components with the data.*
type. These include both core components and special data components.
Core components are a part of other components which are used for accessing data from task files, Toloker responses, or internal data.
The core components include:
data.input
: The input data. For example, links to images that will be shown to Tolokers. In the Template Builder sandbox, you can set an example of input data.
data.output
: The output data. This is what you get when a Toloker clicks the Submit button.
data.internal
: The data available only from within the task. This data is not saved to the results. Use this data to calculate or store intermediate values.
data.local
: The local data available only from inside the component. This data is used in some auxiliary components, such as helper.transform.
data.relative
: A special component for saving data. It's only available in the field.list component.
The list of properties is the same for all core components.
Title | Type | Overview |
---|---|---|
type | string | Name of the component. |
path | string | Path to the property containing data. Dots are used as separators: path.to.some.element To specify the path to the array element, specify its sequence number starting from zero, for example: items.0 |
default | any | The value to use as the default data. This value will be shown in the interface, so it might hide some placeholders, for example, in the field.text component. |
Special data components have only type
property.
Title | Type | Overview |
---|---|---|
type | string | Name of the component. |
Last updated: August 2, 2023