class documentation

Represents a property on an fiftyone.operators.Operator.

Properties are used to define the data that an operator can accept as input and return as output.

Properties may also define a View that can be used to customize how the property behaves in the FiftyOne App.

Examples:

import fiftyone.operators.types as types

my_object = types.Object()

# Define a string property
my_object.str("name", label="Name", description="a description")

# Define an enum property with a custom view
radio_group = types.RadioGroup()
radio_group.add_choice("car", "A brand new car")
radio_group.add_choice("truck", "A fancy truck")
my_object.enum("type", radio_group.values(), view=radio_group)
Parameters
typethe type of the property
invalidwhether the property is invalid
defaultthe default value of the property
requiredwhether the property is required
error_messagethe error message of the property
viewthe View of the property
Method __init__ Undocumented
Method to_json Undocumented
Instance Variable choices Undocumented
Instance Variable default Undocumented
Instance Variable error_message Undocumented
Instance Variable invalid Undocumented
Instance Variable on_change Undocumented
Instance Variable required Undocumented
Instance Variable type Undocumented
Instance Variable view Undocumented
def __init__(self, type, **kwargs): (source)

Undocumented

def to_json(self): (source)

Undocumented

Undocumented

error_message: "Invalid" = (source)

Undocumented

Undocumented

on_change = (source)

Undocumented

Undocumented

Undocumented

Undocumented