class documentation

Represents a set of choices in a View that are displayed as a radio group.

Examples:

import fiftyone.operators.types as types

choices = types.RadioGroup()
choices.add_choice("cat", label="Cat", description="A cat")
choices.add_choice("dog", label="Dog", description="A dog")

inputs = types.Object()
inputs.enum("animal", choices.values(), view=choices)
Parameters
orientationthe orientation of the radio group Can be "horizontal" or "vertical"
labela label for the radio group
descriptiona description for the radio group
captiona caption for the radio group
Method __init__ Undocumented
Method to_json Undocumented
Instance Variable orientation Undocumented

Inherited from Choices:

Method add_choice Adds a choice value to this instance.
Method append Appends a Choice to the list of choices.
Method clone Undocumented
Method values Returns the choice values for this instance.
Property choices Undocumented
Instance Variable _choices Undocumented

Inherited from View (via Choices):

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)
def to_json(self): (source)
orientation: "horizontal" = (source)

Undocumented