Skip to content

Commit

Permalink
Add support for custom tabulator options (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
droumis authored Jul 29, 2024
1 parent 1a8593d commit 928809b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions holonote/app/tabulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ 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="kwargs to pass to tabulator", allow_refs=True)

_updating = False

Expand Down Expand Up @@ -61,6 +62,7 @@ def new_style(row):
buttons={"delete": '<i class="fa fa-trash"></i>'},
show_index=False,
selectable=True,
refs=self.param.tabulator_kwargs,
)
self.tabulator.on_edit(on_edit)
self.tabulator.on_click(on_click)
Expand Down

0 comments on commit 928809b

Please sign in to comment.