«
class documentation

class DrawerView(View): (source)

Constructor: DrawerView(**kwargs)

View In Hierarchy

Renders an operator prompt as a left or right side drawer.

Examples:

import fiftyone.operators.types as types

# in resolve_input
inputs = types.Object()
inputs.str("message", label="Message")
prompt = types.DrawerView(placement="left")
return types.Property(inputs, view=prompt)
Parameters
placement

the placement of the drawer. Can be one of the following

  • 'left': display to the left of the main or expanded view
  • 'right': display to the right of the main or expanded view
Method __init__ Undocumented

Inherited from View:

Method clone Undocumented
Method kwargs_to_json Undocumented
Method to_json Undocumented
Instance Variable caption Undocumented
Instance Variable component Undocumented
Instance Variable componentsProps Undocumented
Instance Variable container Undocumented
Instance Variable description Undocumented
Instance Variable label Undocumented
Instance Variable placeholder Undocumented
Instance Variable read_only Undocumented
Instance Variable space Undocumented
Instance Variable _kwargs Undocumented
def __init__(self, **kwargs): (source)