CheckboxFieldV1

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

CheckboxFieldV1(
self,
data: Optional[BaseComponent] = None,
*,
disabled: Optional[Union[BaseComponent, bool]] = None,
preserve_false: Optional[Union[BaseComponent, bool]] = None,
hint: Optional[Any] = None,
label: Optional[Any] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

A checkbox.

For more information, see field.checkbox.

Parameters description

ParametersTypeDescription
dataOptional[BaseComponent]

A data path.

disabledOptional[Union[BaseComponent, bool]]

Disabling the checkbox.

preserve_falseOptional[Union[BaseComponent, bool]]
  • False — If the checkbox is not selected then False is not added to the output data.
  • True — The output data is always present whether the checkbox is selected or not.

Default value: False.

hintOptional[Any]

A hint.

labelOptional[Any]

A label above the component.

validationOptional[BaseComponent]

Validation rules.

Last updated: August 28, 2023

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