ButtonRadioFieldV1

toloka.client.project.template_builder.fields.ButtonRadioFieldV1 | Source code

ButtonRadioFieldV1(
self,
data: Optional[BaseComponent] = None,
value_to_set: Optional[Any] = None,
*,
hint: Optional[Any] = None,
label: Optional[Any] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

A component in the form of a button.

A Toloker makes a choice by clicking on it.

The size of the button depends on the size of the label.

Parameters Description

ParametersTypeDescription
dataOptional[BaseComponent]

Data with values that will be processed or changed.

value_to_setOptional[Any]

The value of the output data when the button is clicked.

hintOptional[Any]

Hint text.

labelOptional[Any]

Label above the component.

validationOptional[BaseComponent]

Validation based on condition.

Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming