class documentation
class OperatorExecutionButtonView(Button): (source)
Constructor: OperatorExecutionButtonView(**kwargs)
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 | |
icon | an icon for the button. Defaults to "expand_more" if not provided. |
label | a label for the button. |
variant | the variant of the button. Can be "contained" or "outlined". |
description | a description for the button. |
title | a tooltip title for the button. |
operator | the URI of the operator to execute when the button is clicked. |
on | the URI of the operator to execute when the operator execution is successful. |
on | the URI of the operator to execute when the operator execution fails. |
on | the URI of the operator to execute when an option is selected. |
params | the parameters dict to pass to the operator. |
disabled | whether the button is disabled. |
Method | __init__ |
Undocumented |
Inherited from Button
:
Method | to |
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 |
Undocumented |
Instance Variable | component |
Undocumented |
Instance Variable | components |
Undocumented |
Instance Variable | container |
Undocumented |
Instance Variable | placeholder |
Undocumented |
Instance Variable | read |
Undocumented |
Instance Variable | space |
Undocumented |
Instance Variable | _kwargs |
Undocumented |