class documentation
Known subclasses: fiftyone.operators.types.ButtonView
, fiftyone.operators.types.IconButtonView
, fiftyone.operators.types.ModalView
, fiftyone.operators.types.OperatorExecutionButtonView
Constructor: Button(**kwargs)
Represents a button in a View
.
Examples:
import fiftyone.operators.types as types button = types.Button( label="Click me", operator="print_stdout", params={"msg": "Hello World"}, ) inputs = types.Object() inputs.view("btn", button)
Parameters | |
label | a label for the button |
description | a description for the button |
caption | a caption for the button |
operator | the name of the operator to execute when the button is clicked |
params | the parameters to pass to the operator |
href | the URL to navigate to when the button is clicked |
Method | __init__ |
Undocumented |
Method | to |
Undocumented |
Instance Variable | href |
Undocumented |
Instance Variable | operator |
Undocumented |
Instance Variable | params |
Undocumented |
Instance Variable | prompt |
Undocumented |
Inherited from View
:
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 |