primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Add tooltip attribute to p-column

Open nmobregon opened this issue 9 years ago • 9 comments

I'm submitting a ...

[ ] bug report => Search github for a similar issue or PR before submitting
[ x ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Would be a nice-to-have feature to set the tooltip for each row directly in the p-column element without having to use a ng-template instead. In addition, it would be great being able to have an attribute for text tooltip (for example using the same value as in field) or an attribute that receives a helper function and it passes the rowData object in order to resolve it.

I'd find this extremely helpful when setting text-overflow: ellipsis on cells. Here is an example of each case.

<p-dataTable [(value)]="items">
    <p-column field="description" title="description" header="Description"></p-column>
</p-datatable>

** OR **

<p-dataTable [(value)]="items">
    <p-column field="description" [titleHelper]="resolveDescriptionTitle" header="Description" ></p-column>
</p-datatable>

Thanks in advance!

nmobregon avatar Aug 13 '17 16:08 nmobregon

It would be helpful to have an indicator on the column to show that there is a tooltip, as well.

billfranklin avatar Aug 16 '17 18:08 billfranklin

+1

juri33 avatar Sep 27 '17 12:09 juri33

When we can expect this feature to be released..? @cagataycivici can you please provide expected release milestone date or month..?

Abhinav3414 avatar Nov 09 '17 20:11 Abhinav3414

Even better if the column would add a tooltip to itself if the content doesn't fit.

ctrl-brk avatar Nov 09 '17 20:11 ctrl-brk

+1 It would be helpful to has title attribute on the p-column.

JaylanChen avatar Nov 29 '17 06:11 JaylanChen

+1

gabe-axian avatar Jan 02 '18 23:01 gabe-axian

p-dataTable is deprecated and will be removed in favor of the new p-table (aka TurboTable) of 5.1.0 so closing the issue. Please try the new p-table once 5.1.0 is released.

cagataycivici avatar Jan 13 '18 22:01 cagataycivici

Surprised. Were can i get more informations about p-table?

juri33 avatar Jan 16 '18 07:01 juri33

is it resolved even in p-table?

vishal4799 avatar Apr 14 '19 12:04 vishal4799