class documentation
Displays a tree selection checkbox groups.
Examples:
import fiftyone.operators.types as types structure = [ ["group_id_1", ["sample_id_1", "sample_id_2"]], ["group_id_2", ["sample_id_3", "sample_id_4", "sample_id_5"], ["group_id_8", ["sample_id_6"]]], ] tree_view = types.TreeSelectionView( data=structure # this data represents the basic group structure; ) panel.view('exact_duplicate_selections', view=tree_view, on_change=self.toggle_select) def toggle_select(self, ctx): selected = ctx.params['value'] print('selected samples:', selected)
Parameters | |
data | a list of lists representing the tree structure of groups and its children |
on | the operator to execute when the tree selection changes |
Method | __init__ |
Undocumented |
Method | to |
Undocumented |
Inherited from View
:
Method | clone |
Undocumented |
Method | kwargs |
Undocumented |
Instance Variable | caption |
Undocumented |
Instance Variable | component |
Undocumented |
Instance Variable | components |
Undocumented |
Instance Variable | container |
Undocumented |
Instance Variable | description |
Undocumented |
Instance Variable | label |
Undocumented |
Instance Variable | placeholder |
Undocumented |
Instance Variable | read |
Undocumented |
Instance Variable | space |
Undocumented |
Instance Variable | _kwargs |
Undocumented |