panel icon indicating copy to clipboard operation
panel copied to clipboard

enh: Add header tooltip to Tabulator

Open hoxbro opened this issue 6 months ago • 6 comments

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.

image

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()

hoxbro avatar Jun 17 '25 11:06 hoxbro

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.

codecov[bot] avatar Jun 17 '25 12:06 codecov[bot]

Does it also show the tooltip for short column names?

philippjfr avatar Jun 17 '25 20:06 philippjfr

Yes

hoxbro avatar Jun 17 '25 20:06 hoxbro

As long as there is some reasonable delay on it I'm +1 on enabling it by default.

philippjfr avatar Jun 17 '25 20:06 philippjfr

There is a delay.

hoxbro avatar Jun 17 '25 20:06 hoxbro

https://github.com/user-attachments/assets/63c0214b-3425-4763-8dc2-39c2d1d1d7aa

hoxbro avatar Jun 18 '25 09:06 hoxbro

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.

github-actions[bot] avatar Oct 07 '25 01:10 github-actions[bot]