class documentation

class OperatorExecutionButtonView(Button): (source)

Constructor: OperatorExecutionButtonView(**kwargs)

View In Hierarchy

Represents an operator execution button in a View.

Examples:

import fiftyone.operators.types as types

exec_button = types.OperatorExecutionButtonView(
    label="Execute Simple Op",
    variant="contained",
    operator="@voxel51/panel-examples/simple_op",
    on_success=self.on_success,
    on_error=self.on_error,
    on_option_selected=self.on_select,
    params={"msg": "Hello World!"},
)

inputs = types.Object()
inputs.view("operator_btn", view=exec_button)
Parameters
iconan icon for the button. Defaults to "expand_more" if not provided.
labela label for the button.
variantthe variant of the button. Can be "contained" or "outlined".
descriptiona description for the button.
titlea tooltip title for the button.
operatorthe URI of the operator to execute when the button is clicked.
on_successthe URI of the operator to execute when the operator execution is successful.
on_errorthe URI of the operator to execute when the operator execution fails.
on_option_selectedthe URI of the operator to execute when an option is selected.
paramsthe parameters dict to pass to the operator.
disabledwhether the button is disabled.
Method __init__ Undocumented

Inherited from Button:

Method to_json Undocumented
Instance Variable href Undocumented
Instance Variable operator Undocumented
Instance Variable params Undocumented
Instance Variable prompt Undocumented

Inherited from View (via Button):

Method clone Undocumented
Method kwargs_to_json Undocumented
Instance Variable component Undocumented
Instance Variable componentsProps Undocumented
Instance Variable container Undocumented
Instance Variable placeholder Undocumented
Instance Variable read_only Undocumented
Instance Variable space Undocumented
Instance Variable _kwargs Undocumented
def __init__(self, **kwargs): (source) ΒΆ