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

Cannot read links in Tabulator table when using Fast Template #6145

Closed
MarcSkovMadsen opened this issue Jan 2, 2024 · 0 comments · Fixed by #6146
Closed

Cannot read links in Tabulator table when using Fast Template #6145

MarcSkovMadsen opened this issue Jan 2, 2024 · 0 comments · Fixed by #6146
Labels
TRIAGE Default label for untriaged issues

Comments

@MarcSkovMadsen
Copy link
Collaborator

Panel==1.3.6

import panel as pn
import pandas as pd

pn.extension("tabulator", template="fast")

link = "https://panel.holoviz.org"

data = pd.DataFrame({
    "x": [1,2],
    "Source": [link, link]
})

tabulator_formatters = {
    "Source": {"type": "link", "target": "_blank", "label": "link"},
}
pn.widgets.Tabulator(data, formatters=tabulator_formatters, sizing_mode="stretch_width").servable()

image

There is a similar issue when hovering over a row.

Workaround

Use raw_css

.tabulator-row.tabulator-selected a {color: var(--foreground-on-accent-rest);}
.tabulator-row.tabulator-selectable:hover a {color: var(--foreground-on-accent-rest);}
@MarcSkovMadsen MarcSkovMadsen added the TRIAGE Default label for untriaged issues label Jan 2, 2024
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