Skip to content

Commit

Permalink
Formatter - pass on_rendered callback
Browse files Browse the repository at this point in the history
  • Loading branch information
s-cork committed Nov 8, 2023
1 parent 1deea44 commit 1a55402
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client_code/Tabulator/_custom_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ class FormatterWrapper(AbstractCallableWrapper):
@staticmethod
def wrap(f):
f = cell_wrapper(f)
return lambda cell, params, onRendered: f(cell, **params)

def wrapped(cell, params, onRendered):
params["on_rendered"] = onRendered
return f(cell, **params)

return wrapped


@tabulator_module("sorterWrapper", moduleInitOrder=-10)
Expand Down

0 comments on commit 1a55402

Please sign in to comment.