enh: Add header tooltip to Tabulator
I don't see any reason why this shouldn't be enabled all the time.
~We likely need to update the CSS so the font type matches the tabulator font.~ Does not seem to be easy ref.
import pandas as pd
import panel as pn
pn.extension('tabulator')
data = {
"This is a very long column name that should be truncated": [1, 2, 3],
"Another extremely long header that will not fit normally": [4, 5, 6],
"Short": [7, 8, 9]
}
pn.widgets.Tabulator(pd.DataFrame(data), widths=dict.fromkeys(data, 150)).servable()
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 87.07%. Comparing base (
8492008) to head (ac58f3d). Report is 5 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #7988 +/- ##
=======================================
Coverage 87.07% 87.07%
=======================================
Files 346 346
Lines 53374 53374
=======================================
+ Hits 46473 46474 +1
+ Misses 6901 6900 -1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
Does it also show the tooltip for short column names?
Yes
As long as there is some reasonable delay on it I'm +1 on enabling it by default.
There is a delay.
https://github.com/user-attachments/assets/63c0214b-3425-4763-8dc2-39c2d1d1d7aa
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.