Skip to content

Commit

Permalink
Updated TableView obj
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtuevo committed Nov 19, 2024
1 parent eddfc71 commit 2d87ec8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fiftyone/operators/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1870,6 +1870,7 @@ def __init__(self, **kwargs):
super().__init__(**kwargs)
self.columns = kwargs.get("columns", [])
self.row_actions = kwargs.get("row_actions", [])
self.tooltips = kwargs.get("tooltips", [])

def keys(self):
return [column.key for column in self.columns]
Expand All @@ -1895,13 +1896,15 @@ def clone(self):
clone = super().clone()
clone.columns = [column.clone() for column in self.columns]
clone.row_actions = [action.clone() for action in self.row_actions]
clone.tooltips = [tooltip.clone() for tooltip in self.tooltips]
return clone

def to_json(self):
return {
**super().to_json(),
"columns": [column.to_json() for column in self.columns],
"row_actions": [action.to_json() for action in self.row_actions],
"tooltips": [tooltip.to_json() for tooltip in self.tooltips],
}


Expand Down

0 comments on commit 2d87ec8

Please sign in to comment.