function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jaelee125jaelee125 

Tooltip on column header of lightning-datatable

I'm currently trying to add a tooltip on the column header of the lightning-datatable lwc component. If that's not possible, I would like to change the title of the the column header so that I can edit the message that comes up when hovering over column. It sounds like the title takes whatever the value of the column label is. However, I would like to put a custom string on the title.

I've been reading through the documents and looking at the developer forumns, but I'm not sure this is possible. Has anyone found a way?
VinayVinay (Salesforce Developers) 
Hi Jaelee,

Unfortunately,  you cannot display tooltip on column header of lightning-datatable.  Kindly review below Idea link and vote for this feature.

https://ideas.salesforce.com/s/idea/a0B8W00000Gdk1KUAR/tooltip-for-the-header-icon-name-in-lightning-datatable-tree-grid

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,