Skip to content

Commit

Permalink
kwargs as param
Browse files Browse the repository at this point in the history
  • Loading branch information
droumis committed Jul 16, 2024
1 parent 71aa5d6 commit 06d3031
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion holonote/app/tabulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ class AnnotatorTable(pn.viewable.Viewer):
annotator = param.Parameter(allow_refs=False)
tabulator = param.Parameter(allow_refs=False)
dataframe = param.DataFrame()
tabulator_kwargs = param.Dict(
default={}, doc="""Configurations for the HoloViz Panel Tabulator widget""", precedence=-1
)

_updating = False

def __init__(self, annotator, **params):
self.tabulator_kwargs = params.pop("tabulator_kwargs", {})
super().__init__(annotator=annotator, **params)
annotator.snapshot()
self._create_tabulator()
Expand Down

0 comments on commit 06d3031

Please sign in to comment.