Toloka documentation

ActionButtonViewV1

toloka.client.project.template_builder.view.ActionButtonViewV1 | Source code

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

Button that calls an action.

When clicking the button, an action specified in the action property is called.

Parameters Description

Parameters Type Description
action Optional[BaseComponent]

Action called when clicking the button.

hint Optional[Any]

Hint text.

label Optional[Any]

Button text.

validation Optional[BaseComponent]

Validation based on condition.