class documentation

class IconButtonView(Button): (source)

Constructor: IconButtonView(**kwargs)

View In Hierarchy

Represents a button in a View.

Examples:

import fiftyone.operators.types as types

iconButtonView = types.IconButtonView(
    icon="waving_hand",
    operator="print_stdout",
    params={"msg": "Hi!"},
)

inputs = types.Object()
inputs.view("icon_btn", iconButtonView)
Parameters
icona icon for the button. See https://marella.me/material-icons/demo/
variantthe optional variant of the icon button. Can be "round", "square", "outlined", or "contained".
labela label for the button
descriptiona description for the button
captiona caption for the button
operatorthe name of the operator to execute when the button is clicked
paramsthe parameters to pass to the operator
hrefthe URL to navigate to when the button is clicked
Method __init__ Undocumented

Inherited from Button:

Method to_json 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) ΒΆ