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.
The user makes a choice by clicking on it.
The size of the button depends on the size of the label.
Parameters Description
Parameters | Type | Description |
---|---|---|
data |
Optional[BaseComponent] | Data with values that will be processed or changed. |
value_to_set |
Optional[Any] | The value of the output data when the button is clicked. |
hint |
Optional[Any] | Hint text. |
label |
Optional[Any] | Label above the component. |
validation |
Optional[BaseComponent] | Validation based on condition. |