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

Fast Tabulator Styling #2424

Closed
MarcSkovMadsen opened this issue Jun 24, 2021 · 0 comments · Fixed by #2425
Closed

Fast Tabulator Styling #2424

MarcSkovMadsen opened this issue Jun 24, 2021 · 0 comments · Fixed by #2425
Labels
TRIAGE Default label for untriaged issues

Comments

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Jun 24, 2021

I'm on the current master branch (pre 0.12 release) of Panel.

I'm a fan of the Tabulator widget and the Fast templates.

I would like them to work nicely together. More specifically I would like the site and midnight themes to work better with the Fast templates.

Site

image

Midnight

The midnight theme works relative ok. But could probably be improved further.

image

Code

import panel as pn
import pandas as pd

pn.extension(sizing_mode="stretch_width")
ACCENT_COLOR = "#FDAC53"
data = pd.DataFrame(
    {
        "x": [
            1,
        ]
        * 10,
        "y": [
            2,
        ]
        * 10,
    }
)
tabulator = pn.widgets.Tabulator(data, theme="site")

pn.template.FastListTemplate(
    title="Fast Tabulator",
    main=[tabulator],
    sidebar=[tabulator.param.theme],
    header_background=ACCENT_COLOR,
    header_accent_base_color="white",
    accent_base_color=ACCENT_COLOR,
).servable()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TRIAGE Default label for untriaged issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant