Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabulator broken with HTMLTemplateFormatter #2730

Closed
mathrick opened this issue Sep 9, 2021 · 0 comments · Fixed by #2781
Closed

Tabulator broken with HTMLTemplateFormatter #2730

mathrick opened this issue Sep 9, 2021 · 0 comments · Fixed by #2781
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@mathrick
Copy link
Contributor

mathrick commented Sep 9, 2021

ALL software version info

Panel 0.12.1

Description of expected behavior and the observed behavior

Recent change to support hierarchical tabulator breaks rendering with HTMLTemplateFormatter. Specifically, in ce68889, the changes to tabulator.ts peel off the HTML generated. I left a comment on #2624 on the exact lines, I don't know how to link to exact lines in an issue...

Complete, minimal, self-contained example code that reproduces the issue

pn.widgets.Tabulator(pd.DataFrame({'link': ['foo']}), 
                     formatters={'link': HTMLTemplateFormatter(
                         template='<a href="<%= value %>">Link</a>'
                     )})

Screenshots or screencasts of the bug in action

0.12.1:
bug

0.12.0:
before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants