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

Styling does not properly render (server-side) with Tabulator filters in version 1.1.0 #5098

Closed
enismaxim1 opened this issue Jun 12, 2023 · 0 comments
Milestone

Comments

@enismaxim1
Copy link
Contributor

Version: 1.1.0

Similar to issue #5085, styling in Tabulator does not properly render when run in a server in Panel version 1.1.0. The styling does, however, work properly when embedded in a Jupyter notebook.

Minimal code:

import panel as pn
import pandas as pd

df = pd.DataFrame({
    'a': [-1,0,1]
})

select = pn.widgets.Select(options = [None, -1, 0, 1])
table = pn.widgets.Tabulator(df)
table.add_filter(select, 'a')
table.style.applymap(lambda x: 'background-color: red' if x >= 0 else '')
pn.Column(select, table).servable()

After running a server on the aforementioned code, filtering by -1, then clearing the filter, we see that the positive table elements lose their styling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants