class documentation
class ViewTargetProperty(Property): (source)
Constructor: ViewTargetProperty(ctx, view_type, **kwargs)
Displays a view target selector.
Examples:
import fiftyone.operators.types as types # in resolve_input inputs = types.Object() vt = inputs.view_target(ctx) # or add the property directly # vt = types.ViewTargetProperty(ctx) # inputs.add_property("view_target", vt) return types.Property(inputs) # in execute() target_view = ctx.target_view()
Parameters | |
ctx | the fiftyone.operators.ExecutionContext |
view | the type of view to use (RadioGroup or Dropdown) |
Method | __init__ |
Undocumented |
Property | options |
Undocumented |
Instance Variable | _options |
Undocumented |
Inherited from Property
:
Method | to |
Undocumented |
Instance Variable | choices |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | error |
Undocumented |
Instance Variable | invalid |
Undocumented |
Instance Variable | on |
Undocumented |
Instance Variable | required |
Undocumented |
Instance Variable | type |
Undocumented |
Instance Variable | view |
Undocumented |